public static final class BeginTransactionRequest.Builder extends GeneratedMessageV3.Builder<BeginTransactionRequest.Builder> implements BeginTransactionRequestOrBuilder
The request for
Firestore.BeginTransaction.
Protobuf type google.firestore.v1.BeginTransactionRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BeginTransactionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BeginTransactionRequest build()
buildPartial()
public BeginTransactionRequest buildPartial()
clear()
public BeginTransactionRequest.Builder clear()
Overrides
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];
clearField(Descriptors.FieldDescriptor field)
public BeginTransactionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BeginTransactionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearOptions()
public BeginTransactionRequest.Builder clearOptions()
The options for the transaction.
Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
clone()
public BeginTransactionRequest.Builder clone()
Overrides
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];
Returns |
---|
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];
Returns |
---|
Type | Description |
ByteString | The bytes for database.
|
getDefaultInstanceForType()
public BeginTransactionRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getOptions()
public TransactionOptions getOptions()
The options for the transaction.
Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
getOptionsBuilder()
public TransactionOptions.Builder getOptionsBuilder()
The options for the transaction.
Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
getOptionsOrBuilder()
public TransactionOptionsOrBuilder getOptionsOrBuilder()
The options for the transaction.
Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
hasOptions()
public boolean hasOptions()
The options for the transaction.
Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
Returns |
---|
Type | Description |
boolean | Whether the options field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(BeginTransactionRequest other)
public BeginTransactionRequest.Builder mergeFrom(BeginTransactionRequest other)
public BeginTransactionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BeginTransactionRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BeginTransactionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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];
Parameter |
---|
Name | Description |
value | String
The database to set.
|
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];
Parameter |
---|
Name | Description |
value | ByteString
The bytes for database to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public BeginTransactionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BeginTransactionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BeginTransactionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides