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
Modifier and Type | Method and Description |
---|---|
BatchWriteRequest.Builder |
addAllWrites(Iterable<? extends Write> values)
The writes to apply.
|
BatchWriteRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BatchWriteRequest.Builder |
addWrites(int index,
Write.Builder builderForValue)
The writes to apply.
|
BatchWriteRequest.Builder |
addWrites(int index,
Write value)
The writes to apply.
|
BatchWriteRequest.Builder |
addWrites(Write.Builder builderForValue)
The writes to apply.
|
BatchWriteRequest.Builder |
addWrites(Write value)
The writes to apply.
|
Write.Builder |
addWritesBuilder()
The writes to apply.
|
Write.Builder |
addWritesBuilder(int index)
The writes to apply.
|
BatchWriteRequest |
build() |
BatchWriteRequest |
buildPartial() |
BatchWriteRequest.Builder |
clear() |
BatchWriteRequest.Builder |
clearDatabase()
Required.
|
BatchWriteRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BatchWriteRequest.Builder |
clearLabels() |
BatchWriteRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BatchWriteRequest.Builder |
clearWrites()
The writes to apply.
|
BatchWriteRequest.Builder |
clone() |
boolean |
containsLabels(String key)
Labels associated with this batch write.
|
String |
getDatabase()
Required.
|
com.google.protobuf.ByteString |
getDatabaseBytes()
Required.
|
BatchWriteRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Labels associated with this batch write.
|
Map<String,String> |
getLabelsMap()
Labels associated with this batch write.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Labels associated with this batch write.
|
String |
getLabelsOrThrow(String key)
Labels associated with this batch write.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
Write |
getWrites(int index)
The writes to apply.
|
Write.Builder |
getWritesBuilder(int index)
The writes to apply.
|
List<Write.Builder> |
getWritesBuilderList()
The writes to apply.
|
int |
getWritesCount()
The writes to apply.
|
List<Write> |
getWritesList()
The writes to apply.
|
WriteOrBuilder |
getWritesOrBuilder(int index)
The writes to apply.
|
List<? extends WriteOrBuilder> |
getWritesOrBuilderList()
The writes to apply.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
BatchWriteRequest.Builder |
mergeFrom(BatchWriteRequest other) |
BatchWriteRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BatchWriteRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
BatchWriteRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BatchWriteRequest.Builder |
putAllLabels(Map<String,String> values)
Labels associated with this batch write.
|
BatchWriteRequest.Builder |
putLabels(String key,
String value)
Labels associated with this batch write.
|
BatchWriteRequest.Builder |
removeLabels(String key)
Labels associated with this batch write.
|
BatchWriteRequest.Builder |
removeWrites(int index)
The writes to apply.
|
BatchWriteRequest.Builder |
setDatabase(String value)
Required.
|
BatchWriteRequest.Builder |
setDatabaseBytes(com.google.protobuf.ByteString value)
Required.
|
BatchWriteRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BatchWriteRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BatchWriteRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BatchWriteRequest.Builder |
setWrites(int index,
Write.Builder builderForValue)
The writes to apply.
|
BatchWriteRequest.Builder |
setWrites(int index,
Write value)
The writes to apply.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
public BatchWriteRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
public BatchWriteRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public BatchWriteRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public BatchWriteRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public BatchWriteRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
public BatchWriteRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
public BatchWriteRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
public BatchWriteRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
public BatchWriteRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
public BatchWriteRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
public BatchWriteRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<BatchWriteRequest.Builder>
public BatchWriteRequest.Builder mergeFrom(BatchWriteRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
public BatchWriteRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<BatchWriteRequest.Builder>
IOException
public String getDatabase()
Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
getDatabase
in interface BatchWriteRequestOrBuilder
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];
getDatabaseBytes
in interface BatchWriteRequestOrBuilder
public BatchWriteRequest.Builder setDatabase(String value)
Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The database to set.public BatchWriteRequest.Builder clearDatabase()
Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
public BatchWriteRequest.Builder setDatabaseBytes(com.google.protobuf.ByteString value)
Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for database to set.public List<Write> 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;
getWritesList
in interface BatchWriteRequestOrBuilder
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;
getWritesCount
in interface BatchWriteRequestOrBuilder
public Write getWrites(int index)
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;
getWrites
in interface BatchWriteRequestOrBuilder
public BatchWriteRequest.Builder setWrites(int index, Write value)
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;
public BatchWriteRequest.Builder setWrites(int index, Write.Builder builderForValue)
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;
public BatchWriteRequest.Builder addWrites(Write value)
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;
public BatchWriteRequest.Builder addWrites(int index, Write value)
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;
public BatchWriteRequest.Builder addWrites(Write.Builder builderForValue)
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;
public BatchWriteRequest.Builder addWrites(int index, Write.Builder builderForValue)
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;
public BatchWriteRequest.Builder addAllWrites(Iterable<? extends Write> values)
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;
public BatchWriteRequest.Builder 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;
public BatchWriteRequest.Builder removeWrites(int index)
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;
public Write.Builder getWritesBuilder(int index)
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;
public WriteOrBuilder getWritesOrBuilder(int index)
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
in interface BatchWriteRequestOrBuilder
public List<? extends WriteOrBuilder> 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;
getWritesOrBuilderList
in interface BatchWriteRequestOrBuilder
public Write.Builder 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;
public Write.Builder addWritesBuilder(int index)
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;
public List<Write.Builder> 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;
public int getLabelsCount()
BatchWriteRequestOrBuilder
Labels associated with this batch write.
map<string, string> labels = 3;
getLabelsCount
in interface BatchWriteRequestOrBuilder
public boolean containsLabels(String key)
Labels associated with this batch write.
map<string, string> labels = 3;
containsLabels
in interface BatchWriteRequestOrBuilder
@Deprecated public Map<String,String> getLabels()
getLabelsMap()
instead.getLabels
in interface BatchWriteRequestOrBuilder
public Map<String,String> getLabelsMap()
Labels associated with this batch write.
map<string, string> labels = 3;
getLabelsMap
in interface BatchWriteRequestOrBuilder
public String getLabelsOrDefault(String key, String defaultValue)
Labels associated with this batch write.
map<string, string> labels = 3;
getLabelsOrDefault
in interface BatchWriteRequestOrBuilder
public String getLabelsOrThrow(String key)
Labels associated with this batch write.
map<string, string> labels = 3;
getLabelsOrThrow
in interface BatchWriteRequestOrBuilder
public BatchWriteRequest.Builder clearLabels()
public BatchWriteRequest.Builder removeLabels(String key)
Labels associated with this batch write.
map<string, string> labels = 3;
@Deprecated public Map<String,String> getMutableLabels()
public BatchWriteRequest.Builder putLabels(String key, String value)
Labels associated with this batch write.
map<string, string> labels = 3;
public BatchWriteRequest.Builder putAllLabels(Map<String,String> values)
Labels associated with this batch write.
map<string, string> labels = 3;
public final BatchWriteRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
public final BatchWriteRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BatchWriteRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.