Class BeginTransactionResponse.Builder (2.21.1)

public static final class BeginTransactionResponse.Builder extends GeneratedMessageV3.Builder<BeginTransactionResponse.Builder> implements BeginTransactionResponseOrBuilder

The response for Datastore.BeginTransaction.

Protobuf type google.datastore.v1.BeginTransactionResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BeginTransactionResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BeginTransactionResponse.Builder
Overrides

build()

public BeginTransactionResponse build()
Returns
Type Description
BeginTransactionResponse

buildPartial()

public BeginTransactionResponse buildPartial()
Returns
Type Description
BeginTransactionResponse

clear()

public BeginTransactionResponse.Builder clear()
Returns
Type Description
BeginTransactionResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BeginTransactionResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BeginTransactionResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BeginTransactionResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BeginTransactionResponse.Builder
Overrides

clearTransaction()

public BeginTransactionResponse.Builder clearTransaction()

The transaction identifier (always present).

bytes transaction = 1;

Returns
Type Description
BeginTransactionResponse.Builder

This builder for chaining.

clone()

public BeginTransactionResponse.Builder clone()
Returns
Type Description
BeginTransactionResponse.Builder
Overrides

getDefaultInstanceForType()

public BeginTransactionResponse getDefaultInstanceForType()
Returns
Type Description
BeginTransactionResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getTransaction()

public ByteString getTransaction()

The transaction identifier (always present).

bytes transaction = 1;

Returns
Type Description
ByteString

The transaction.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BeginTransactionResponse other)

public BeginTransactionResponse.Builder mergeFrom(BeginTransactionResponse other)
Parameter
Name Description
other BeginTransactionResponse
Returns
Type Description
BeginTransactionResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BeginTransactionResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BeginTransactionResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BeginTransactionResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BeginTransactionResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BeginTransactionResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BeginTransactionResponse.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public BeginTransactionResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BeginTransactionResponse.Builder
Overrides

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

public BeginTransactionResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BeginTransactionResponse.Builder
Overrides

setTransaction(ByteString value)

public BeginTransactionResponse.Builder setTransaction(ByteString value)

The transaction identifier (always present).

bytes transaction = 1;

Parameter
Name Description
value ByteString

The transaction to set.

Returns
Type Description
BeginTransactionResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BeginTransactionResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BeginTransactionResponse.Builder
Overrides