public static final class CommitResponse.Builder extends GeneratedMessageV3.Builder<CommitResponse.Builder> implements CommitResponseOrBuilder
The response for Datastore.Commit.
Protobuf type google.datastore.v1.CommitResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllMutationResults(Iterable<? extends MutationResult> values)
public CommitResponse.Builder addAllMutationResults(Iterable<? extends MutationResult> values)
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Parameter
Name | Description |
values | Iterable<? extends com.google.datastore.v1.MutationResult>
|
Returns
addMutationResults(MutationResult value)
public CommitResponse.Builder addMutationResults(MutationResult value)
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Parameter
Returns
addMutationResults(MutationResult.Builder builderForValue)
public CommitResponse.Builder addMutationResults(MutationResult.Builder builderForValue)
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Parameter
Returns
addMutationResults(int index, MutationResult value)
public CommitResponse.Builder addMutationResults(int index, MutationResult value)
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Parameters
Returns
addMutationResults(int index, MutationResult.Builder builderForValue)
public CommitResponse.Builder addMutationResults(int index, MutationResult.Builder builderForValue)
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Parameters
Returns
addMutationResultsBuilder()
public MutationResult.Builder addMutationResultsBuilder()
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Returns
addMutationResultsBuilder(int index)
public MutationResult.Builder addMutationResultsBuilder(int index)
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CommitResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CommitResponse build()
Returns
buildPartial()
public CommitResponse buildPartial()
Returns
clear()
public CommitResponse.Builder clear()
Returns
Overrides
clearCommitTime()
public CommitResponse.Builder clearCommitTime()
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
Returns
clearField(Descriptors.FieldDescriptor field)
public CommitResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearIndexUpdates()
public CommitResponse.Builder clearIndexUpdates()
The number of index entries updated during the commit, or zero if none were
updated.
int32 index_updates = 4;
Returns
clearMutationResults()
public CommitResponse.Builder clearMutationResults()
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CommitResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public CommitResponse.Builder clone()
Returns
Overrides
getCommitTime()
public Timestamp getCommitTime()
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
Returns
getCommitTimeBuilder()
public Timestamp.Builder getCommitTimeBuilder()
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
Returns
getCommitTimeOrBuilder()
public TimestampOrBuilder getCommitTimeOrBuilder()
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
Returns
getDefaultInstanceForType()
public CommitResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getIndexUpdates()
public int getIndexUpdates()
The number of index entries updated during the commit, or zero if none were
updated.
int32 index_updates = 4;
Returns
Type | Description |
int | The indexUpdates.
|
getMutationResults(int index)
public MutationResult getMutationResults(int index)
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Parameter
Returns
getMutationResultsBuilder(int index)
public MutationResult.Builder getMutationResultsBuilder(int index)
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Parameter
Returns
getMutationResultsBuilderList()
public List<MutationResult.Builder> getMutationResultsBuilderList()
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Returns
getMutationResultsCount()
public int getMutationResultsCount()
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Returns
getMutationResultsList()
public List<MutationResult> getMutationResultsList()
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Returns
getMutationResultsOrBuilder(int index)
public MutationResultOrBuilder getMutationResultsOrBuilder(int index)
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Parameter
Returns
getMutationResultsOrBuilderList()
public List<? extends MutationResultOrBuilder> getMutationResultsOrBuilderList()
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Returns
Type | Description |
List<? extends com.google.datastore.v1.MutationResultOrBuilder> | |
hasCommitTime()
public boolean hasCommitTime()
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
Returns
Type | Description |
boolean | Whether the commitTime field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeCommitTime(Timestamp value)
public CommitResponse.Builder mergeCommitTime(Timestamp value)
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
Parameter
Returns
mergeFrom(CommitResponse other)
public CommitResponse.Builder mergeFrom(CommitResponse other)
Parameter
Returns
public CommitResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CommitResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CommitResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeMutationResults(int index)
public CommitResponse.Builder removeMutationResults(int index)
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Parameter
Returns
setCommitTime(Timestamp value)
public CommitResponse.Builder setCommitTime(Timestamp value)
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
Parameter
Returns
setCommitTime(Timestamp.Builder builderForValue)
public CommitResponse.Builder setCommitTime(Timestamp.Builder builderForValue)
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
Parameter
Name | Description |
builderForValue | Builder
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CommitResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setIndexUpdates(int value)
public CommitResponse.Builder setIndexUpdates(int value)
The number of index entries updated during the commit, or zero if none were
updated.
int32 index_updates = 4;
Parameter
Name | Description |
value | int
The indexUpdates to set.
|
Returns
setMutationResults(int index, MutationResult value)
public CommitResponse.Builder setMutationResults(int index, MutationResult value)
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Parameters
Returns
setMutationResults(int index, MutationResult.Builder builderForValue)
public CommitResponse.Builder setMutationResults(int index, MutationResult.Builder builderForValue)
The result of performing the mutations.
The i-th mutation result corresponds to the i-th mutation in the request.
repeated .google.datastore.v1.MutationResult mutation_results = 3;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CommitResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CommitResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides