public static final class BeginTransactionRequest.Builder extends GeneratedMessageV3.Builder<BeginTransactionRequest.Builder> implements BeginTransactionRequestOrBuilder
The request for Firestore.BeginTransaction.
Protobuf type google.firestore.v1.BeginTransactionRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BeginTransactionRequest.BuilderImplements
BeginTransactionRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BeginTransactionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
BeginTransactionRequest.Builder |
build()
public BeginTransactionRequest build()
Type | Description |
BeginTransactionRequest |
buildPartial()
public BeginTransactionRequest buildPartial()
Type | Description |
BeginTransactionRequest |
clear()
public BeginTransactionRequest.Builder clear()
Type | Description |
BeginTransactionRequest.Builder |
clearDatabase()
public BeginTransactionRequest.Builder clearDatabase()
Required. The database name. In the format:
projects/{project_id}/databases/{database_id}
.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
BeginTransactionRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public BeginTransactionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
BeginTransactionRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public BeginTransactionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
BeginTransactionRequest.Builder |
clearOptions()
public BeginTransactionRequest.Builder clearOptions()
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
Type | Description |
BeginTransactionRequest.Builder |
clone()
public BeginTransactionRequest.Builder clone()
Type | Description |
BeginTransactionRequest.Builder |
getDatabase()
public String getDatabase()
Required. The database name. In the format:
projects/{project_id}/databases/{database_id}
.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The database. |
getDatabaseBytes()
public ByteString getDatabaseBytes()
Required. The database name. In the format:
projects/{project_id}/databases/{database_id}
.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for database. |
getDefaultInstanceForType()
public BeginTransactionRequest getDefaultInstanceForType()
Type | Description |
BeginTransactionRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getOptions()
public TransactionOptions getOptions()
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
Type | Description |
TransactionOptions | The options. |
getOptionsBuilder()
public TransactionOptions.Builder getOptionsBuilder()
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
Type | Description |
TransactionOptions.Builder |
getOptionsOrBuilder()
public TransactionOptionsOrBuilder getOptionsOrBuilder()
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
Type | Description |
TransactionOptionsOrBuilder |
hasOptions()
public boolean hasOptions()
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
Type | Description |
boolean | Whether the options field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(BeginTransactionRequest other)
public BeginTransactionRequest.Builder mergeFrom(BeginTransactionRequest other)
Name | Description |
other | BeginTransactionRequest |
Type | Description |
BeginTransactionRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public BeginTransactionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
BeginTransactionRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public BeginTransactionRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
BeginTransactionRequest.Builder |
mergeOptions(TransactionOptions value)
public BeginTransactionRequest.Builder mergeOptions(TransactionOptions value)
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
Name | Description |
value | TransactionOptions |
Type | Description |
BeginTransactionRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BeginTransactionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
BeginTransactionRequest.Builder |
setDatabase(String value)
public BeginTransactionRequest.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];
Name | Description |
value | String The database to set. |
Type | Description |
BeginTransactionRequest.Builder | This builder for chaining. |
setDatabaseBytes(ByteString value)
public BeginTransactionRequest.Builder setDatabaseBytes(ByteString value)
Required. The database name. In the format:
projects/{project_id}/databases/{database_id}
.
string database = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The bytes for database to set. |
Type | Description |
BeginTransactionRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public BeginTransactionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
BeginTransactionRequest.Builder |
setOptions(TransactionOptions value)
public BeginTransactionRequest.Builder setOptions(TransactionOptions value)
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
Name | Description |
value | TransactionOptions |
Type | Description |
BeginTransactionRequest.Builder |
setOptions(TransactionOptions.Builder builderForValue)
public BeginTransactionRequest.Builder setOptions(TransactionOptions.Builder builderForValue)
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
Name | Description |
builderForValue | TransactionOptions.Builder |
Type | Description |
BeginTransactionRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BeginTransactionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
BeginTransactionRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final BeginTransactionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
BeginTransactionRequest.Builder |