Package com.google.datastore.v1
Class CommitResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
com.google.datastore.v1.CommitResponse.Builder
- All Implemented Interfaces:
CommitResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CommitResponse
public static final class CommitResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
implements CommitResponseOrBuilder
The response for [Datastore.Commit][google.datastore.v1.Datastore.Commit].Protobuf type
google.datastore.v1.CommitResponse
-
Method Summary
Modifier and TypeMethodDescriptionaddAllMutationResults
(Iterable<? extends MutationResult> values) The result of performing the mutations.addMutationResults
(int index, MutationResult value) The result of performing the mutations.addMutationResults
(int index, MutationResult.Builder builderForValue) The result of performing the mutations.addMutationResults
(MutationResult value) The result of performing the mutations.addMutationResults
(MutationResult.Builder builderForValue) The result of performing the mutations.The result of performing the mutations.addMutationResultsBuilder
(int index) The result of performing the mutations.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The transaction commit timestamp.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) The number of index entries updated during the commit, or zero if none were updated.The result of performing the mutations.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()
com.google.protobuf.Timestamp
The transaction commit timestamp.com.google.protobuf.Timestamp.Builder
The transaction commit timestamp.com.google.protobuf.TimestampOrBuilder
The transaction commit timestamp.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
The number of index entries updated during the commit, or zero if none were updated.getMutationResults
(int index) The result of performing the mutations.getMutationResultsBuilder
(int index) The result of performing the mutations.The result of performing the mutations.int
The result of performing the mutations.The result of performing the mutations.getMutationResultsOrBuilder
(int index) The result of performing the mutations.List<? extends MutationResultOrBuilder>
The result of performing the mutations.boolean
The transaction commit timestamp.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeCommitTime
(com.google.protobuf.Timestamp value) The transaction commit timestamp.mergeFrom
(CommitResponse other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) final CommitResponse.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeMutationResults
(int index) The result of performing the mutations.setCommitTime
(com.google.protobuf.Timestamp value) The transaction commit timestamp.setCommitTime
(com.google.protobuf.Timestamp.Builder builderForValue) The transaction commit timestamp.setIndexUpdates
(int value) The number of index entries updated during the commit, or zero if none were updated.setMutationResults
(int index, MutationResult value) The result of performing the mutations.setMutationResults
(int index, MutationResult.Builder builderForValue) The result of performing the mutations.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final CommitResponse.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
setField
public CommitResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
setRepeatedField
public CommitResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
addRepeatedField
public CommitResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommitResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
mergeFrom
public CommitResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommitResponse.Builder>
- Throws:
IOException
-
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;
- Specified by:
getMutationResultsList
in interfaceCommitResponseOrBuilder
-
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;
- Specified by:
getMutationResultsCount
in interfaceCommitResponseOrBuilder
-
getMutationResults
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;
- Specified by:
getMutationResults
in interfaceCommitResponseOrBuilder
-
setMutationResults
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;
-
setMutationResults
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;
-
addMutationResults
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;
-
addMutationResults
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;
-
addMutationResults
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;
-
addMutationResults
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;
-
addAllMutationResults
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;
-
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;
-
removeMutationResults
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;
-
getMutationResultsBuilder
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;
-
getMutationResultsOrBuilder
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;
- Specified by:
getMutationResultsOrBuilder
in interfaceCommitResponseOrBuilder
-
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;
- Specified by:
getMutationResultsOrBuilderList
in interfaceCommitResponseOrBuilder
-
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;
-
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;
-
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;
-
getIndexUpdates
public int getIndexUpdates()The number of index entries updated during the commit, or zero if none were updated.
int32 index_updates = 4;
- Specified by:
getIndexUpdates
in interfaceCommitResponseOrBuilder
- Returns:
- The indexUpdates.
-
setIndexUpdates
The number of index entries updated during the commit, or zero if none were updated.
int32 index_updates = 4;
- Parameters:
value
- The indexUpdates to set.- Returns:
- This builder for chaining.
-
clearIndexUpdates
The number of index entries updated during the commit, or zero if none were updated.
int32 index_updates = 4;
- Returns:
- This builder for chaining.
-
hasCommitTime
public boolean hasCommitTime()The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
- Specified by:
hasCommitTime
in interfaceCommitResponseOrBuilder
- Returns:
- Whether the commitTime field is set.
-
getCommitTime
public com.google.protobuf.Timestamp getCommitTime()The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
- Specified by:
getCommitTime
in interfaceCommitResponseOrBuilder
- Returns:
- The commitTime.
-
setCommitTime
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
-
setCommitTime
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
-
mergeCommitTime
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
-
clearCommitTime
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
-
getCommitTimeBuilder
public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder()The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
-
getCommitTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder()The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
- Specified by:
getCommitTimeOrBuilder
in interfaceCommitResponseOrBuilder
-
setUnknownFields
public final CommitResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
mergeUnknownFields
public final CommitResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-