public static final class TransactionOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder> implements TransactionOptionsOrBuilder
Options for beginning a new transaction. Transactions can be created explicitly with calls to [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction] or implicitly by setting [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] in read requests.Protobuf type
google.datastore.v1.TransactionOptions
Modifier and Type | Method and Description |
---|---|
TransactionOptions.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransactionOptions |
build() |
TransactionOptions |
buildPartial() |
TransactionOptions.Builder |
clear() |
TransactionOptions.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TransactionOptions.Builder |
clearMode() |
TransactionOptions.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TransactionOptions.Builder |
clearReadOnly()
The transaction should only allow reads.
|
TransactionOptions.Builder |
clearReadWrite()
The transaction should allow both reads and writes.
|
TransactionOptions.Builder |
clone() |
TransactionOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TransactionOptions.ModeCase |
getModeCase() |
TransactionOptions.ReadOnly |
getReadOnly()
The transaction should only allow reads.
|
TransactionOptions.ReadOnly.Builder |
getReadOnlyBuilder()
The transaction should only allow reads.
|
TransactionOptions.ReadOnlyOrBuilder |
getReadOnlyOrBuilder()
The transaction should only allow reads.
|
TransactionOptions.ReadWrite |
getReadWrite()
The transaction should allow both reads and writes.
|
TransactionOptions.ReadWrite.Builder |
getReadWriteBuilder()
The transaction should allow both reads and writes.
|
TransactionOptions.ReadWriteOrBuilder |
getReadWriteOrBuilder()
The transaction should allow both reads and writes.
|
boolean |
hasReadOnly()
The transaction should only allow reads.
|
boolean |
hasReadWrite()
The transaction should allow both reads and writes.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TransactionOptions.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TransactionOptions.Builder |
mergeFrom(com.google.protobuf.Message other) |
TransactionOptions.Builder |
mergeFrom(TransactionOptions other) |
TransactionOptions.Builder |
mergeReadOnly(TransactionOptions.ReadOnly value)
The transaction should only allow reads.
|
TransactionOptions.Builder |
mergeReadWrite(TransactionOptions.ReadWrite value)
The transaction should allow both reads and writes.
|
TransactionOptions.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TransactionOptions.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransactionOptions.Builder |
setReadOnly(TransactionOptions.ReadOnly.Builder builderForValue)
The transaction should only allow reads.
|
TransactionOptions.Builder |
setReadOnly(TransactionOptions.ReadOnly value)
The transaction should only allow reads.
|
TransactionOptions.Builder |
setReadWrite(TransactionOptions.ReadWrite.Builder builderForValue)
The transaction should allow both reads and writes.
|
TransactionOptions.Builder |
setReadWrite(TransactionOptions.ReadWrite value)
The transaction should allow both reads and writes.
|
TransactionOptions.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TransactionOptions.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<TransactionOptions.Builder>
public TransactionOptions.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<TransactionOptions.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<TransactionOptions.Builder>
public TransactionOptions getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TransactionOptions build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TransactionOptions buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TransactionOptions.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<TransactionOptions.Builder>
public TransactionOptions.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<TransactionOptions.Builder>
public TransactionOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public TransactionOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public TransactionOptions.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<TransactionOptions.Builder>
public TransactionOptions.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<TransactionOptions.Builder>
public TransactionOptions.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TransactionOptions.Builder>
public TransactionOptions.Builder mergeFrom(TransactionOptions other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public TransactionOptions.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<TransactionOptions.Builder>
IOException
public TransactionOptions.ModeCase getModeCase()
getModeCase
in interface TransactionOptionsOrBuilder
public TransactionOptions.Builder clearMode()
public boolean hasReadWrite()
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
hasReadWrite
in interface TransactionOptionsOrBuilder
public TransactionOptions.ReadWrite getReadWrite()
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
getReadWrite
in interface TransactionOptionsOrBuilder
public TransactionOptions.Builder setReadWrite(TransactionOptions.ReadWrite value)
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
public TransactionOptions.Builder setReadWrite(TransactionOptions.ReadWrite.Builder builderForValue)
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
public TransactionOptions.Builder mergeReadWrite(TransactionOptions.ReadWrite value)
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
public TransactionOptions.Builder clearReadWrite()
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
public TransactionOptions.ReadWrite.Builder getReadWriteBuilder()
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
public TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder()
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
getReadWriteOrBuilder
in interface TransactionOptionsOrBuilder
public boolean hasReadOnly()
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
hasReadOnly
in interface TransactionOptionsOrBuilder
public TransactionOptions.ReadOnly getReadOnly()
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
getReadOnly
in interface TransactionOptionsOrBuilder
public TransactionOptions.Builder setReadOnly(TransactionOptions.ReadOnly value)
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
public TransactionOptions.Builder setReadOnly(TransactionOptions.ReadOnly.Builder builderForValue)
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
public TransactionOptions.Builder mergeReadOnly(TransactionOptions.ReadOnly value)
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
public TransactionOptions.Builder clearReadOnly()
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
public TransactionOptions.ReadOnly.Builder getReadOnlyBuilder()
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
public TransactionOptions.ReadOnlyOrBuilder getReadOnlyOrBuilder()
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
getReadOnlyOrBuilder
in interface TransactionOptionsOrBuilder
public final TransactionOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public final TransactionOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
Copyright © 2023 Google LLC. All rights reserved.