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 typegoogle.datastore.v1.CommitResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CommitResponse.BuilderaddAllMutationResults(Iterable<? extends MutationResult> values)The result of performing the mutations.CommitResponse.BuilderaddMutationResults(int index, MutationResult value)The result of performing the mutations.CommitResponse.BuilderaddMutationResults(int index, MutationResult.Builder builderForValue)The result of performing the mutations.CommitResponse.BuilderaddMutationResults(MutationResult value)The result of performing the mutations.CommitResponse.BuilderaddMutationResults(MutationResult.Builder builderForValue)The result of performing the mutations.MutationResult.BuilderaddMutationResultsBuilder()The result of performing the mutations.MutationResult.BuilderaddMutationResultsBuilder(int index)The result of performing the mutations.CommitResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CommitResponsebuild()CommitResponsebuildPartial()CommitResponse.Builderclear()CommitResponse.BuilderclearCommitTime()The transaction commit timestamp.CommitResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CommitResponse.BuilderclearIndexUpdates()The number of index entries updated during the commit, or zero if none were updated.CommitResponse.BuilderclearMutationResults()The result of performing the mutations.CommitResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CommitResponse.Builderclone()com.google.protobuf.TimestampgetCommitTime()The transaction commit timestamp.com.google.protobuf.Timestamp.BuildergetCommitTimeBuilder()The transaction commit timestamp.com.google.protobuf.TimestampOrBuildergetCommitTimeOrBuilder()The transaction commit timestamp.CommitResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetIndexUpdates()The number of index entries updated during the commit, or zero if none were updated.MutationResultgetMutationResults(int index)The result of performing the mutations.MutationResult.BuildergetMutationResultsBuilder(int index)The result of performing the mutations.List<MutationResult.Builder>getMutationResultsBuilderList()The result of performing the mutations.intgetMutationResultsCount()The result of performing the mutations.List<MutationResult>getMutationResultsList()The result of performing the mutations.MutationResultOrBuildergetMutationResultsOrBuilder(int index)The result of performing the mutations.List<? extends MutationResultOrBuilder>getMutationResultsOrBuilderList()The result of performing the mutations.booleanhasCommitTime()The transaction commit timestamp.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CommitResponse.BuildermergeCommitTime(com.google.protobuf.Timestamp value)The transaction commit timestamp.CommitResponse.BuildermergeFrom(CommitResponse other)CommitResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CommitResponse.BuildermergeFrom(com.google.protobuf.Message other)CommitResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CommitResponse.BuilderremoveMutationResults(int index)The result of performing the mutations.CommitResponse.BuildersetCommitTime(com.google.protobuf.Timestamp value)The transaction commit timestamp.CommitResponse.BuildersetCommitTime(com.google.protobuf.Timestamp.Builder builderForValue)The transaction commit timestamp.CommitResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CommitResponse.BuildersetIndexUpdates(int value)The number of index entries updated during the commit, or zero if none were updated.CommitResponse.BuildersetMutationResults(int index, MutationResult value)The result of performing the mutations.CommitResponse.BuildersetMutationResults(int index, MutationResult.Builder builderForValue)The result of performing the mutations.CommitResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CommitResponse.BuildersetUnknownFields(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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
clear
public CommitResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
getDefaultInstanceForType
public CommitResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommitResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommitResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommitResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
setField
public CommitResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
clearField
public CommitResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
clearOneof
public CommitResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
setRepeatedField
public CommitResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
addRepeatedField
public CommitResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
mergeFrom
public CommitResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommitResponse.Builder>
-
mergeFrom
public CommitResponse.Builder mergeFrom(CommitResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommitResponse.Builder>- Throws:
IOException
-
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;- Specified by:
getMutationResultsListin 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:
getMutationResultsCountin interfaceCommitResponseOrBuilder
-
getMutationResults
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;- Specified by:
getMutationResultsin interfaceCommitResponseOrBuilder
-
setMutationResults
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;
-
setMutationResults
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;
-
addMutationResults
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;
-
addMutationResults
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;
-
addMutationResults
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;
-
addMutationResults
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;
-
addAllMutationResults
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;
-
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;
-
removeMutationResults
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;
-
getMutationResultsBuilder
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;
-
getMutationResultsOrBuilder
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;- Specified by:
getMutationResultsOrBuilderin interfaceCommitResponseOrBuilder
-
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;- Specified by:
getMutationResultsOrBuilderListin interfaceCommitResponseOrBuilder
-
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;
-
addMutationResultsBuilder
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;
-
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;
-
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:
getIndexUpdatesin interfaceCommitResponseOrBuilder- Returns:
- The indexUpdates.
-
setIndexUpdates
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;- Parameters:
value- The indexUpdates to set.- Returns:
- This builder for chaining.
-
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:
- 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:
hasCommitTimein 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:
getCommitTimein interfaceCommitResponseOrBuilder- Returns:
- The commitTime.
-
setCommitTime
public CommitResponse.Builder setCommitTime(com.google.protobuf.Timestamp value)
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
-
setCommitTime
public CommitResponse.Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue)
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
-
mergeCommitTime
public CommitResponse.Builder mergeCommitTime(com.google.protobuf.Timestamp value)
The transaction commit timestamp. Not set for non-transactional commits.
.google.protobuf.Timestamp commit_time = 8;
-
clearCommitTime
public CommitResponse.Builder 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:
getCommitTimeOrBuilderin interfaceCommitResponseOrBuilder
-
setUnknownFields
public final CommitResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
mergeUnknownFields
public final CommitResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommitResponse.Builder>
-
-