public static final class BeginTransactionRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder> implements BeginTransactionRequestOrBuilder
The request for [Firestore.BeginTransaction][google.firestore.v1.Firestore.BeginTransaction].Protobuf type
google.firestore.v1.BeginTransactionRequest
Modifier and Type | Method and Description |
---|---|
BeginTransactionRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BeginTransactionRequest |
build() |
BeginTransactionRequest |
buildPartial() |
BeginTransactionRequest.Builder |
clear() |
BeginTransactionRequest.Builder |
clearDatabase()
Required.
|
BeginTransactionRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BeginTransactionRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BeginTransactionRequest.Builder |
clearOptions()
The options for the transaction.
|
BeginTransactionRequest.Builder |
clone() |
String |
getDatabase()
Required.
|
com.google.protobuf.ByteString |
getDatabaseBytes()
Required.
|
BeginTransactionRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TransactionOptions |
getOptions()
The options for the transaction.
|
TransactionOptions.Builder |
getOptionsBuilder()
The options for the transaction.
|
TransactionOptionsOrBuilder |
getOptionsOrBuilder()
The options for the transaction.
|
boolean |
hasOptions()
The options for the transaction.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BeginTransactionRequest.Builder |
mergeFrom(BeginTransactionRequest other) |
BeginTransactionRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BeginTransactionRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
BeginTransactionRequest.Builder |
mergeOptions(TransactionOptions value)
The options for the transaction.
|
BeginTransactionRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BeginTransactionRequest.Builder |
setDatabase(String value)
Required.
|
BeginTransactionRequest.Builder |
setDatabaseBytes(com.google.protobuf.ByteString value)
Required.
|
BeginTransactionRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BeginTransactionRequest.Builder |
setOptions(TransactionOptions.Builder builderForValue)
The options for the transaction.
|
BeginTransactionRequest.Builder |
setOptions(TransactionOptions value)
The options for the transaction.
|
BeginTransactionRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BeginTransactionRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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<BeginTransactionRequest.Builder>
public BeginTransactionRequest.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<BeginTransactionRequest.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<BeginTransactionRequest.Builder>
public BeginTransactionRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public BeginTransactionRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public BeginTransactionRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public BeginTransactionRequest.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<BeginTransactionRequest.Builder>
public BeginTransactionRequest.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<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.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<BeginTransactionRequest.Builder>
public BeginTransactionRequest.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<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder mergeFrom(BeginTransactionRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.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<BeginTransactionRequest.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 BeginTransactionRequestOrBuilder
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 BeginTransactionRequestOrBuilder
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];
value
- The database to set.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];
public BeginTransactionRequest.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 boolean hasOptions()
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
hasOptions
in interface BeginTransactionRequestOrBuilder
public TransactionOptions getOptions()
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
getOptions
in interface BeginTransactionRequestOrBuilder
public BeginTransactionRequest.Builder setOptions(TransactionOptions value)
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
public BeginTransactionRequest.Builder setOptions(TransactionOptions.Builder builderForValue)
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
public BeginTransactionRequest.Builder mergeOptions(TransactionOptions value)
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
public BeginTransactionRequest.Builder clearOptions()
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
public TransactionOptions.Builder getOptionsBuilder()
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
public TransactionOptionsOrBuilder getOptionsOrBuilder()
The options for the transaction. Defaults to a read-write transaction.
.google.firestore.v1.TransactionOptions options = 2;
getOptionsOrBuilder
in interface BeginTransactionRequestOrBuilder
public final BeginTransactionRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public final BeginTransactionRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.