Send feedback
Class BeginTransactionRequest.Builder (2.4.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.4.0 keyboard_arrow_down
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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BeginTransactionRequest . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public BeginTransactionRequest build ()
Returns
buildPartial()
public BeginTransactionRequest buildPartial ()
Returns
clear()
public BeginTransactionRequest . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public BeginTransactionRequest . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BeginTransactionRequest . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
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
clearTransactionOptions()
public BeginTransactionRequest . Builder clearTransactionOptions ()
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
Returns
clone()
public BeginTransactionRequest . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public BeginTransactionRequest getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
Type Description 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
getTransactionOptions()
public TransactionOptions getTransactionOptions ()
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
Returns
getTransactionOptionsBuilder()
public TransactionOptions . Builder getTransactionOptionsBuilder ()
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
Returns
getTransactionOptionsOrBuilder()
public TransactionOptionsOrBuilder getTransactionOptionsOrBuilder ()
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
Returns
hasTransactionOptions()
public boolean hasTransactionOptions ()
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
Returns
Type Description boolean Whether the transactionOptions field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(BeginTransactionRequest other)
public BeginTransactionRequest . Builder mergeFrom ( BeginTransactionRequest other )
Parameter
Returns
public BeginTransactionRequest . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BeginTransactionRequest . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeTransactionOptions(TransactionOptions value)
public BeginTransactionRequest . Builder mergeTransactionOptions ( TransactionOptions value )
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BeginTransactionRequest . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public BeginTransactionRequest . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
Name Description value String
The projectId to set.
Returns
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
Name Description value ByteString
The bytes for projectId to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BeginTransactionRequest . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setTransactionOptions(TransactionOptions value)
public BeginTransactionRequest . Builder setTransactionOptions ( TransactionOptions value )
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
Parameter
Returns
setTransactionOptions(TransactionOptions.Builder builderForValue)
public BeginTransactionRequest . Builder setTransactionOptions ( TransactionOptions . Builder builderForValue )
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final BeginTransactionRequest . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]