Send feedback
Class TransactionOptions.Builder (2.13.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.13.1 keyboard_arrow_down
public static final class TransactionOptions . Builder extends GeneratedMessageV3 . Builder<TransactionOptions . Builder > implements TransactionOptionsOrBuilder
Options for beginning a new transaction.
Transactions can be created explicitly with calls to
Datastore.BeginTransaction or implicitly by setting
ReadOptions.new_transaction in read requests.
Protobuf type google.datastore.v1.TransactionOptions
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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 ()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TransactionOptions . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public TransactionOptions build ()
Returns
buildPartial()
public TransactionOptions buildPartial ()
Returns
clear()
public TransactionOptions . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public TransactionOptions . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearMode()
public TransactionOptions . Builder clearMode ()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public TransactionOptions . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearReadOnly()
public TransactionOptions . Builder clearReadOnly ()
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
Returns
clearReadWrite()
public TransactionOptions . Builder clearReadWrite ()
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
Returns
clone()
public TransactionOptions . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public TransactionOptions getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getModeCase()
public TransactionOptions . ModeCase getModeCase ()
Returns
getReadOnly()
public TransactionOptions . ReadOnly getReadOnly ()
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
Returns
getReadOnlyBuilder()
public TransactionOptions . ReadOnly . Builder getReadOnlyBuilder ()
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
Returns
getReadOnlyOrBuilder()
public TransactionOptions . ReadOnlyOrBuilder getReadOnlyOrBuilder ()
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
Returns
getReadWrite()
public TransactionOptions . ReadWrite getReadWrite ()
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
Returns
getReadWriteBuilder()
public TransactionOptions . ReadWrite . Builder getReadWriteBuilder ()
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
Returns
getReadWriteOrBuilder()
public TransactionOptions . ReadWriteOrBuilder getReadWriteOrBuilder ()
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
Returns
hasReadOnly()
public boolean hasReadOnly ()
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
Returns
Type Description boolean Whether the readOnly field is set.
hasReadWrite()
public boolean hasReadWrite ()
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
Returns
Type Description boolean Whether the readWrite field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(TransactionOptions other)
public TransactionOptions . Builder mergeFrom ( TransactionOptions other )
Parameter
Returns
public TransactionOptions . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TransactionOptions . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeReadOnly(TransactionOptions.ReadOnly value)
public TransactionOptions . Builder mergeReadOnly ( TransactionOptions . ReadOnly value )
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
Parameter
Returns
mergeReadWrite(TransactionOptions.ReadWrite value)
public TransactionOptions . Builder mergeReadWrite ( TransactionOptions . ReadWrite value )
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TransactionOptions . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public TransactionOptions . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setReadOnly(TransactionOptions.ReadOnly value)
public TransactionOptions . Builder setReadOnly ( TransactionOptions . ReadOnly value )
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
Parameter
Returns
setReadOnly(TransactionOptions.ReadOnly.Builder builderForValue)
public TransactionOptions . Builder setReadOnly ( TransactionOptions . ReadOnly . Builder builderForValue )
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
Parameter
Returns
setReadWrite(TransactionOptions.ReadWrite value)
public TransactionOptions . Builder setReadWrite ( TransactionOptions . ReadWrite value )
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
Parameter
Returns
setReadWrite(TransactionOptions.ReadWrite.Builder builderForValue)
public TransactionOptions . Builder setReadWrite ( TransactionOptions . ReadWrite . Builder builderForValue )
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TransactionOptions . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TransactionOptions . 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."],[],[]]