public static final class CommitRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder> implements CommitRequestOrBuilder
The request for [Firestore.Commit][google.firestore.v1.Firestore.Commit].Protobuf type
google.firestore.v1.CommitRequest
Modifier and Type | Method and Description |
---|---|
CommitRequest.Builder |
addAllWrites(Iterable<? extends Write> values)
The writes to apply.
|
CommitRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CommitRequest.Builder |
addWrites(int index,
Write.Builder builderForValue)
The writes to apply.
|
CommitRequest.Builder |
addWrites(int index,
Write value)
The writes to apply.
|
CommitRequest.Builder |
addWrites(Write.Builder builderForValue)
The writes to apply.
|
CommitRequest.Builder |
addWrites(Write value)
The writes to apply.
|
Write.Builder |
addWritesBuilder()
The writes to apply.
|
Write.Builder |
addWritesBuilder(int index)
The writes to apply.
|
CommitRequest |
build() |
CommitRequest |
buildPartial() |
CommitRequest.Builder |
clear() |
CommitRequest.Builder |
clearDatabase()
Required.
|
CommitRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CommitRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CommitRequest.Builder |
clearTransaction()
If set, applies all writes in this transaction, and commits it.
|
CommitRequest.Builder |
clearWrites()
The writes to apply.
|
CommitRequest.Builder |
clone() |
String |
getDatabase()
Required.
|
com.google.protobuf.ByteString |
getDatabaseBytes()
Required.
|
CommitRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getTransaction()
If set, applies all writes in this transaction, and commits it.
|
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() |
boolean |
isInitialized() |
CommitRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CommitRequest.Builder |
mergeFrom(CommitRequest other) |
CommitRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
CommitRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CommitRequest.Builder |
removeWrites(int index)
The writes to apply.
|
CommitRequest.Builder |
setDatabase(String value)
Required.
|
CommitRequest.Builder |
setDatabaseBytes(com.google.protobuf.ByteString value)
Required.
|
CommitRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CommitRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
CommitRequest.Builder |
setTransaction(com.google.protobuf.ByteString value)
If set, applies all writes in this transaction, and commits it.
|
CommitRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CommitRequest.Builder |
setWrites(int index,
Write.Builder builderForValue)
The writes to apply.
|
CommitRequest.Builder |
setWrites(int index,
Write value)
The writes to apply.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
public CommitRequest.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<CommitRequest.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<CommitRequest.Builder>
public CommitRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public CommitRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public CommitRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public CommitRequest.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<CommitRequest.Builder>
public CommitRequest.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<CommitRequest.Builder>
public CommitRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
public CommitRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
public CommitRequest.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<CommitRequest.Builder>
public CommitRequest.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<CommitRequest.Builder>
public CommitRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<CommitRequest.Builder>
public CommitRequest.Builder mergeFrom(CommitRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
public CommitRequest.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<CommitRequest.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 CommitRequestOrBuilder
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 CommitRequestOrBuilder
public CommitRequest.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 CommitRequest.Builder clearDatabase()
Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
public CommitRequest.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. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
getWritesList
in interface CommitRequestOrBuilder
public int getWritesCount()
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
getWritesCount
in interface CommitRequestOrBuilder
public Write getWrites(int index)
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
getWrites
in interface CommitRequestOrBuilder
public CommitRequest.Builder setWrites(int index, Write value)
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
public CommitRequest.Builder setWrites(int index, Write.Builder builderForValue)
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
public CommitRequest.Builder addWrites(Write value)
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
public CommitRequest.Builder addWrites(int index, Write value)
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
public CommitRequest.Builder addWrites(Write.Builder builderForValue)
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
public CommitRequest.Builder addWrites(int index, Write.Builder builderForValue)
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
public CommitRequest.Builder addAllWrites(Iterable<? extends Write> values)
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
public CommitRequest.Builder clearWrites()
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
public CommitRequest.Builder removeWrites(int index)
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
public Write.Builder getWritesBuilder(int index)
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
public WriteOrBuilder getWritesOrBuilder(int index)
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
getWritesOrBuilder
in interface CommitRequestOrBuilder
public List<? extends WriteOrBuilder> getWritesOrBuilderList()
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
getWritesOrBuilderList
in interface CommitRequestOrBuilder
public Write.Builder addWritesBuilder()
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
public Write.Builder addWritesBuilder(int index)
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
public List<Write.Builder> getWritesBuilderList()
The writes to apply. Always executed atomically and in order.
repeated .google.firestore.v1.Write writes = 2;
public com.google.protobuf.ByteString getTransaction()
If set, applies all writes in this transaction, and commits it.
bytes transaction = 3;
getTransaction
in interface CommitRequestOrBuilder
public CommitRequest.Builder setTransaction(com.google.protobuf.ByteString value)
If set, applies all writes in this transaction, and commits it.
bytes transaction = 3;
value
- The transaction to set.public CommitRequest.Builder clearTransaction()
If set, applies all writes in this transaction, and commits it.
bytes transaction = 3;
public final CommitRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
public final CommitRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CommitRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.