public static final class BeginTransactionRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder> implements BeginTransactionRequestOrBuilder
The request for [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].Protobuf type
google.datastore.v1.BeginTransactionRequest
Modifier and Type | Method and Description |
---|---|
BeginTransactionRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BeginTransactionRequest |
build() |
BeginTransactionRequest |
buildPartial() |
BeginTransactionRequest.Builder |
clear() |
BeginTransactionRequest.Builder |
clearDatabaseId()
The ID of the database against which to make the request.
|
BeginTransactionRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BeginTransactionRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BeginTransactionRequest.Builder |
clearProjectId()
Required.
|
BeginTransactionRequest.Builder |
clearTransactionOptions()
Options for a new transaction.
|
BeginTransactionRequest.Builder |
clone() |
String |
getDatabaseId()
The ID of the database against which to make the request.
|
com.google.protobuf.ByteString |
getDatabaseIdBytes()
The ID of the database against which to make the request.
|
BeginTransactionRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getProjectId()
Required.
|
com.google.protobuf.ByteString |
getProjectIdBytes()
Required.
|
TransactionOptions |
getTransactionOptions()
Options for a new transaction.
|
TransactionOptions.Builder |
getTransactionOptionsBuilder()
Options for a new transaction.
|
TransactionOptionsOrBuilder |
getTransactionOptionsOrBuilder()
Options for a new transaction.
|
boolean |
hasTransactionOptions()
Options for a new transaction.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BeginTransactionRequest.Builder |
mergeFrom(BeginTransactionRequest other) |
BeginTransactionRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BeginTransactionRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
BeginTransactionRequest.Builder |
mergeTransactionOptions(TransactionOptions value)
Options for a new transaction.
|
BeginTransactionRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BeginTransactionRequest.Builder |
setDatabaseId(String value)
The ID of the database against which to make the request.
|
BeginTransactionRequest.Builder |
setDatabaseIdBytes(com.google.protobuf.ByteString value)
The ID of the database against which to make the request.
|
BeginTransactionRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BeginTransactionRequest.Builder |
setProjectId(String value)
Required.
|
BeginTransactionRequest.Builder |
setProjectIdBytes(com.google.protobuf.ByteString value)
Required.
|
BeginTransactionRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BeginTransactionRequest.Builder |
setTransactionOptions(TransactionOptions.Builder builderForValue)
Options for a new transaction.
|
BeginTransactionRequest.Builder |
setTransactionOptions(TransactionOptions value)
Options for a new transaction.
|
BeginTransactionRequest.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<BeginTransactionRequest.Builder>
public BeginTransactionRequest.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<BeginTransactionRequest.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<BeginTransactionRequest.Builder>
public BeginTransactionRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public BeginTransactionRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public BeginTransactionRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public BeginTransactionRequest.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<BeginTransactionRequest.Builder>
public BeginTransactionRequest.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<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.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<BeginTransactionRequest.Builder>
public BeginTransactionRequest.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<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.Builder mergeFrom(BeginTransactionRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public BeginTransactionRequest.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<BeginTransactionRequest.Builder>
IOException
public String getProjectId()
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
getProjectId
in interface BeginTransactionRequestOrBuilder
public com.google.protobuf.ByteString getProjectIdBytes()
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
getProjectIdBytes
in interface BeginTransactionRequestOrBuilder
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];
value
- The projectId to set.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];
public BeginTransactionRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
value
- The bytes for projectId to set.public String getDatabaseId()
The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.
string database_id = 9;
getDatabaseId
in interface BeginTransactionRequestOrBuilder
public com.google.protobuf.ByteString getDatabaseIdBytes()
The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.
string database_id = 9;
getDatabaseIdBytes
in interface BeginTransactionRequestOrBuilder
public BeginTransactionRequest.Builder setDatabaseId(String value)
The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.
string database_id = 9;
value
- The databaseId to set.public BeginTransactionRequest.Builder clearDatabaseId()
The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.
string database_id = 9;
public BeginTransactionRequest.Builder setDatabaseIdBytes(com.google.protobuf.ByteString value)
The ID of the database against which to make the request. '(default)' is not allowed; please use empty string '' to refer the default database.
string database_id = 9;
value
- The bytes for databaseId to set.public boolean hasTransactionOptions()
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
hasTransactionOptions
in interface BeginTransactionRequestOrBuilder
public TransactionOptions getTransactionOptions()
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
getTransactionOptions
in interface BeginTransactionRequestOrBuilder
public BeginTransactionRequest.Builder setTransactionOptions(TransactionOptions value)
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
public BeginTransactionRequest.Builder setTransactionOptions(TransactionOptions.Builder builderForValue)
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
public BeginTransactionRequest.Builder mergeTransactionOptions(TransactionOptions value)
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
public BeginTransactionRequest.Builder clearTransactionOptions()
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
public TransactionOptions.Builder getTransactionOptionsBuilder()
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
public TransactionOptionsOrBuilder getTransactionOptionsOrBuilder()
Options for a new transaction.
.google.datastore.v1.TransactionOptions transaction_options = 10;
getTransactionOptionsOrBuilder
in interface BeginTransactionRequestOrBuilder
public final BeginTransactionRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
public final BeginTransactionRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<BeginTransactionRequest.Builder>
Copyright © 2023 Google LLC. All rights reserved.