Class BeginTransactionRequest.Builder (2.17.6)

public static final class BeginTransactionRequest.Builder extends GeneratedMessageV3.Builder<BeginTransactionRequest.Builder> implements BeginTransactionRequestOrBuilder

The request for Datastore.BeginTransaction.

Protobuf type google.datastore.v1.BeginTransactionRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BeginTransactionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BeginTransactionRequest.Builder
Overrides

build()

public BeginTransactionRequest build()
Returns
TypeDescription
BeginTransactionRequest

buildPartial()

public BeginTransactionRequest buildPartial()
Returns
TypeDescription
BeginTransactionRequest

clear()

public BeginTransactionRequest.Builder clear()
Returns
TypeDescription
BeginTransactionRequest.Builder
Overrides

clearDatabaseId()

public BeginTransactionRequest.Builder clearDatabaseId()

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Returns
TypeDescription
BeginTransactionRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BeginTransactionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BeginTransactionRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BeginTransactionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BeginTransactionRequest.Builder
Overrides

clearProjectId()

public BeginTransactionRequest.Builder clearProjectId()

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BeginTransactionRequest.Builder

This builder for chaining.

clearTransactionOptions()

public BeginTransactionRequest.Builder clearTransactionOptions()

Options for a new transaction.

.google.datastore.v1.TransactionOptions transaction_options = 10;

Returns
TypeDescription
BeginTransactionRequest.Builder

clone()

public BeginTransactionRequest.Builder clone()
Returns
TypeDescription
BeginTransactionRequest.Builder
Overrides

getDatabaseId()

public String getDatabaseId()

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Returns
TypeDescription
String

The databaseId.

getDatabaseIdBytes()

public ByteString getDatabaseIdBytes()

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Returns
TypeDescription
ByteString

The bytes for databaseId.

getDefaultInstanceForType()

public BeginTransactionRequest getDefaultInstanceForType()
Returns
TypeDescription
BeginTransactionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProjectId()

public String getProjectId()

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for projectId.

getTransactionOptions()

public TransactionOptions getTransactionOptions()

Options for a new transaction.

.google.datastore.v1.TransactionOptions transaction_options = 10;

Returns
TypeDescription
TransactionOptions

The transactionOptions.

getTransactionOptionsBuilder()

public TransactionOptions.Builder getTransactionOptionsBuilder()

Options for a new transaction.

.google.datastore.v1.TransactionOptions transaction_options = 10;

Returns
TypeDescription
TransactionOptions.Builder

getTransactionOptionsOrBuilder()

public TransactionOptionsOrBuilder getTransactionOptionsOrBuilder()

Options for a new transaction.

.google.datastore.v1.TransactionOptions transaction_options = 10;

Returns
TypeDescription
TransactionOptionsOrBuilder

hasTransactionOptions()

public boolean hasTransactionOptions()

Options for a new transaction.

.google.datastore.v1.TransactionOptions transaction_options = 10;

Returns
TypeDescription
boolean

Whether the transactionOptions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BeginTransactionRequest other)

public BeginTransactionRequest.Builder mergeFrom(BeginTransactionRequest other)
Parameter
NameDescription
otherBeginTransactionRequest
Returns
TypeDescription
BeginTransactionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BeginTransactionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BeginTransactionRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BeginTransactionRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BeginTransactionRequest.Builder
Overrides

mergeTransactionOptions(TransactionOptions value)

public BeginTransactionRequest.Builder mergeTransactionOptions(TransactionOptions value)

Options for a new transaction.

.google.datastore.v1.TransactionOptions transaction_options = 10;

Parameter
NameDescription
valueTransactionOptions
Returns
TypeDescription
BeginTransactionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BeginTransactionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BeginTransactionRequest.Builder
Overrides

setDatabaseId(String value)

public BeginTransactionRequest.Builder setDatabaseId(String value)

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Parameter
NameDescription
valueString

The databaseId to set.

Returns
TypeDescription
BeginTransactionRequest.Builder

This builder for chaining.

setDatabaseIdBytes(ByteString value)

public BeginTransactionRequest.Builder setDatabaseIdBytes(ByteString value)

The ID of the database against which to make the request.

'(default)' is not allowed; please use empty string '' to refer the default database.

string database_id = 9;

Parameter
NameDescription
valueByteString

The bytes for databaseId to set.

Returns
TypeDescription
BeginTransactionRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BeginTransactionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BeginTransactionRequest.Builder
Overrides

setProjectId(String value)

public BeginTransactionRequest.Builder setProjectId(String value)

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
BeginTransactionRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public BeginTransactionRequest.Builder setProjectIdBytes(ByteString value)

Required. The ID of the project against which to make the request.

string project_id = 8 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
BeginTransactionRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BeginTransactionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BeginTransactionRequest.Builder
Overrides

setTransactionOptions(TransactionOptions value)

public BeginTransactionRequest.Builder setTransactionOptions(TransactionOptions value)

Options for a new transaction.

.google.datastore.v1.TransactionOptions transaction_options = 10;

Parameter
NameDescription
valueTransactionOptions
Returns
TypeDescription
BeginTransactionRequest.Builder

setTransactionOptions(TransactionOptions.Builder builderForValue)

public BeginTransactionRequest.Builder setTransactionOptions(TransactionOptions.Builder builderForValue)

Options for a new transaction.

.google.datastore.v1.TransactionOptions transaction_options = 10;

Parameter
NameDescription
builderForValueTransactionOptions.Builder
Returns
TypeDescription
BeginTransactionRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BeginTransactionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BeginTransactionRequest.Builder
Overrides