publicfinalclass CommitRequestextendsGeneratedMessageV3implementsCommitRequestOrBuilder
The request for Datastore.Commit.
Protobuf type google.datastore.v1.CommitRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DATABASE_ID_FIELD_NUMBER
publicstaticfinalintDATABASE_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MODE_FIELD_NUMBER
publicstaticfinalintMODE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MUTATIONS_FIELD_NUMBER
publicstaticfinalintMUTATIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
PROJECT_ID_FIELD_NUMBER
publicstaticfinalintPROJECT_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SINGLE_USE_TRANSACTION_FIELD_NUMBER
publicstaticfinalintSINGLE_USE_TRANSACTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TRANSACTION_FIELD_NUMBER
publicstaticfinalintTRANSACTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticCommitRequestgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticCommitRequest.BuildernewBuilder()
newBuilder(CommitRequest prototype)
publicstaticCommitRequest.BuildernewBuilder(CommitRequestprototype)
publicstaticCommitRequestparseDelimitedFrom(InputStreaminput)
publicstaticCommitRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticCommitRequestparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticCommitRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticCommitRequestparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticCommitRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticCommitRequestparseFrom(CodedInputStreaminput)
publicstaticCommitRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticCommitRequestparseFrom(InputStreaminput)
publicstaticCommitRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticCommitRequestparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticCommitRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<CommitRequest>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDatabaseId()
publicStringgetDatabaseId()
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;
| Returns |
| Type |
Description |
String |
The databaseId.
|
getDatabaseIdBytes()
publicByteStringgetDatabaseIdBytes()
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;
| Returns |
| Type |
Description |
ByteString |
The bytes for databaseId.
|
getDefaultInstanceForType()
publicCommitRequestgetDefaultInstanceForType()
getMode()
publicCommitRequest.ModegetMode()
The type of commit to perform. Defaults to TRANSACTIONAL.
.google.datastore.v1.CommitRequest.Mode mode = 5;
getModeValue()
The type of commit to perform. Defaults to TRANSACTIONAL.
.google.datastore.v1.CommitRequest.Mode mode = 5;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for mode.
|
getMutations(int index)
publicMutationgetMutations(intindex)
The mutations to perform.
When mode is TRANSACTIONAL, mutations affecting a single entity are
applied in order. The following sequences of mutations affecting a single
entity are not permitted in a single Commit request:
insert followed by insert
update followed by insert
upsert followed by insert
delete followed by update
When mode is NON_TRANSACTIONAL, no two mutations may affect a single
entity.
repeated .google.datastore.v1.Mutation mutations = 6;
| Parameter |
| Name |
Description |
index |
int
|
getMutationsCount()
publicintgetMutationsCount()
The mutations to perform.
When mode is TRANSACTIONAL, mutations affecting a single entity are
applied in order. The following sequences of mutations affecting a single
entity are not permitted in a single Commit request:
insert followed by insert
update followed by insert
upsert followed by insert
delete followed by update
When mode is NON_TRANSACTIONAL, no two mutations may affect a single
entity.
repeated .google.datastore.v1.Mutation mutations = 6;
| Returns |
| Type |
Description |
int |
getMutationsList()
publicList<Mutation>getMutationsList()
The mutations to perform.
When mode is TRANSACTIONAL, mutations affecting a single entity are
applied in order. The following sequences of mutations affecting a single
entity are not permitted in a single Commit request:
insert followed by insert
update followed by insert
upsert followed by insert
delete followed by update
When mode is NON_TRANSACTIONAL, no two mutations may affect a single
entity.
repeated .google.datastore.v1.Mutation mutations = 6;
getMutationsOrBuilder(int index)
publicMutationOrBuildergetMutationsOrBuilder(intindex)
The mutations to perform.
When mode is TRANSACTIONAL, mutations affecting a single entity are
applied in order. The following sequences of mutations affecting a single
entity are not permitted in a single Commit request:
insert followed by insert
update followed by insert
upsert followed by insert
delete followed by update
When mode is NON_TRANSACTIONAL, no two mutations may affect a single
entity.
repeated .google.datastore.v1.Mutation mutations = 6;
| Parameter |
| Name |
Description |
index |
int
|
getMutationsOrBuilderList()
publicList<?extendsMutationOrBuilder>getMutationsOrBuilderList()
The mutations to perform.
When mode is TRANSACTIONAL, mutations affecting a single entity are
applied in order. The following sequences of mutations affecting a single
entity are not permitted in a single Commit request:
insert followed by insert
update followed by insert
upsert followed by insert
delete followed by update
When mode is NON_TRANSACTIONAL, no two mutations may affect a single
entity.
repeated .google.datastore.v1.Mutation mutations = 6;
| Returns |
| Type |
Description |
List<? extends com.google.datastore.v1.MutationOrBuilder> |
getParserForType()
publicParser<CommitRequest>getParserForType()
Overrides
getProjectId()
publicStringgetProjectId()
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()
publicByteStringgetProjectIdBytes()
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
ByteString |
The bytes for projectId.
|
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getSingleUseTransaction()
publicTransactionOptionsgetSingleUseTransaction()
Options for beginning a new transaction for this request.
The transaction is committed when the request completes. If specified,
TransactionOptions.mode must be
TransactionOptions.ReadWrite.
.google.datastore.v1.TransactionOptions single_use_transaction = 10;
getSingleUseTransactionOrBuilder()
publicTransactionOptionsOrBuildergetSingleUseTransactionOrBuilder()
Options for beginning a new transaction for this request.
The transaction is committed when the request completes. If specified,
TransactionOptions.mode must be
TransactionOptions.ReadWrite.
.google.datastore.v1.TransactionOptions single_use_transaction = 10;
getTransaction()
publicByteStringgetTransaction()
The identifier of the transaction associated with the commit. A
transaction identifier is returned by a call to
Datastore.BeginTransaction.
bytes transaction = 1;
| Returns |
| Type |
Description |
ByteString |
The transaction.
|
getTransactionSelectorCase()
publicCommitRequest.TransactionSelectorCasegetTransactionSelectorCase()
hasSingleUseTransaction()
publicbooleanhasSingleUseTransaction()
Options for beginning a new transaction for this request.
The transaction is committed when the request completes. If specified,
TransactionOptions.mode must be
TransactionOptions.ReadWrite.
.google.datastore.v1.TransactionOptions single_use_transaction = 10;
| Returns |
| Type |
Description |
boolean |
Whether the singleUseTransaction field is set.
|
hasTransaction()
publicbooleanhasTransaction()
The identifier of the transaction associated with the commit. A
transaction identifier is returned by a call to
Datastore.BeginTransaction.
bytes transaction = 1;
| Returns |
| Type |
Description |
boolean |
Whether the transaction field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicCommitRequest.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedCommitRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicCommitRequest.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides