public final class TransactionOptions extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
TransactionOptions.Builder
Options for beginning a new transaction.
|
static class |
TransactionOptions.ModeCase |
static class |
TransactionOptions.ReadOnly
Options specific to read-only transactions.
|
static interface |
TransactionOptions.ReadOnlyOrBuilder |
static class |
TransactionOptions.ReadWrite
Options specific to read / write transactions.
|
static interface |
TransactionOptions.ReadWriteOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
READ_ONLY_FIELD_NUMBER |
static int |
READ_WRITE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static TransactionOptions |
getDefaultInstance() |
TransactionOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
TransactionOptions.ModeCase |
getModeCase() |
com.google.protobuf.Parser<TransactionOptions> |
getParserForType() |
TransactionOptions.ReadOnly |
getReadOnly()
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.ReadWriteOrBuilder |
getReadWriteOrBuilder()
The transaction should allow both reads and writes.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
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() |
static TransactionOptions.Builder |
newBuilder() |
static TransactionOptions.Builder |
newBuilder(TransactionOptions prototype) |
TransactionOptions.Builder |
newBuilderForType() |
protected TransactionOptions.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static TransactionOptions |
parseDelimitedFrom(InputStream input) |
static TransactionOptions |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransactionOptions |
parseFrom(byte[] data) |
static TransactionOptions |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransactionOptions |
parseFrom(ByteBuffer data) |
static TransactionOptions |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransactionOptions |
parseFrom(com.google.protobuf.ByteString data) |
static TransactionOptions |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransactionOptions |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TransactionOptions |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TransactionOptions |
parseFrom(InputStream input) |
static TransactionOptions |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TransactionOptions> |
parser() |
TransactionOptions.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int READ_WRITE_FIELD_NUMBER
public static final int READ_ONLY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public TransactionOptions.ModeCase getModeCase()
getModeCase in interface TransactionOptionsOrBuilderpublic boolean hasReadWrite()
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;hasReadWrite in interface TransactionOptionsOrBuilderpublic TransactionOptions.ReadWrite getReadWrite()
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;getReadWrite in interface TransactionOptionsOrBuilderpublic TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder()
The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;getReadWriteOrBuilder in interface TransactionOptionsOrBuilderpublic boolean hasReadOnly()
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;hasReadOnly in interface TransactionOptionsOrBuilderpublic TransactionOptions.ReadOnly getReadOnly()
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;getReadOnly in interface TransactionOptionsOrBuilderpublic TransactionOptions.ReadOnlyOrBuilder getReadOnlyOrBuilder()
The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;getReadOnlyOrBuilder in interface TransactionOptionsOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TransactionOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransactionOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransactionOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransactionOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransactionOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransactionOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TransactionOptions parseFrom(InputStream input) throws IOException
IOExceptionpublic static TransactionOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TransactionOptions parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TransactionOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TransactionOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TransactionOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TransactionOptions.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TransactionOptions.Builder newBuilder()
public static TransactionOptions.Builder newBuilder(TransactionOptions prototype)
public TransactionOptions.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TransactionOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TransactionOptions getDefaultInstance()
public static com.google.protobuf.Parser<TransactionOptions> parser()
public com.google.protobuf.Parser<TransactionOptions> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TransactionOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.