Class MutationResult.Builder (2.32.3)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass MutationResult.BuilderextendsGeneratedMessageV3.Builder<MutationResult.Builder>implementsMutationResultOrBuilderThe result of applying a mutation.
Protobuf type google.datastore.v1.MutationResult
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MutationResult.BuilderImplements
MutationResultOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllTransformResults(Iterable<? extends Value> values)
publicMutationResult.BuilderaddAllTransformResults(Iterable<?extendsValue>values)The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.datastore.v1.Value> |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicMutationResult.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
addTransformResults(Value value)
publicMutationResult.BuilderaddTransformResults(Valuevalue)The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Parameter | |
|---|---|
| Name | Description |
value |
Value |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
addTransformResults(Value.Builder builderForValue)
publicMutationResult.BuilderaddTransformResults(Value.BuilderbuilderForValue)The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Value.Builder |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
addTransformResults(int index, Value value)
publicMutationResult.BuilderaddTransformResults(intindex,Valuevalue)The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Value |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
addTransformResults(int index, Value.Builder builderForValue)
publicMutationResult.BuilderaddTransformResults(intindex,Value.BuilderbuilderForValue)The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Value.Builder |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
addTransformResultsBuilder()
publicValue.BuilderaddTransformResultsBuilder()The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Returns | |
|---|---|
| Type | Description |
Value.Builder |
|
addTransformResultsBuilder(int index)
publicValue.BuilderaddTransformResultsBuilder(intindex)The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Value.Builder |
|
build()
publicMutationResultbuild()| Returns | |
|---|---|
| Type | Description |
MutationResult |
|
buildPartial()
publicMutationResultbuildPartial()| Returns | |
|---|---|
| Type | Description |
MutationResult |
|
clear()
publicMutationResult.Builderclear()| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
clearConflictDetected()
publicMutationResult.BuilderclearConflictDetected()Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
bool conflict_detected = 5;
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
This builder for chaining. |
clearCreateTime()
publicMutationResult.BuilderclearCreateTime()The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicMutationResult.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
clearKey()
publicMutationResult.BuilderclearKey()The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
publicMutationResult.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
clearTransformResults()
publicMutationResult.BuilderclearTransformResults()The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
clearUpdateTime()
publicMutationResult.BuilderclearUpdateTime()The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6;
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
clearVersion()
publicMutationResult.BuilderclearVersion()The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.
int64 version = 4;
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
This builder for chaining. |
clone()
publicMutationResult.Builderclone()| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
getConflictDetected()
publicbooleangetConflictDetected()Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
bool conflict_detected = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
The conflictDetected. |
getCreateTime()
publicTimestampgetCreateTime()The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
publicTimestamp.BuildergetCreateTimeBuilder()The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
publicTimestampOrBuildergetCreateTimeOrBuilder()The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
publicMutationResultgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
MutationResult |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getKey()
publicKeygetKey()The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
| Returns | |
|---|---|
| Type | Description |
Key |
The key. |
getKeyBuilder()
publicKey.BuildergetKeyBuilder()The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
| Returns | |
|---|---|
| Type | Description |
Key.Builder |
|
getKeyOrBuilder()
publicKeyOrBuildergetKeyOrBuilder()The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
| Returns | |
|---|---|
| Type | Description |
KeyOrBuilder |
|
getTransformResults(int index)
publicValuegetTransformResults(intindex)The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Value |
|
getTransformResultsBuilder(int index)
publicValue.BuildergetTransformResultsBuilder(intindex)The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Value.Builder |
|
getTransformResultsBuilderList()
publicList<Value.Builder>getTransformResultsBuilderList()The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getTransformResultsCount()
publicintgetTransformResultsCount()The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Returns | |
|---|---|
| Type | Description |
int |
|
getTransformResultsList()
publicList<Value>getTransformResultsList()The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Returns | |
|---|---|
| Type | Description |
List<Value> |
|
getTransformResultsOrBuilder(int index)
publicValueOrBuildergetTransformResultsOrBuilder(intindex)The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ValueOrBuilder |
|
getTransformResultsOrBuilderList()
publicList<?extendsValueOrBuilder>getTransformResultsOrBuilderList()The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.datastore.v1.ValueOrBuilder> |
|
getUpdateTime()
publicTimestampgetUpdateTime()The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
publicTimestamp.BuildergetUpdateTimeBuilder()The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
publicTimestampOrBuildergetUpdateTimeOrBuilder()The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getVersion()
publiclonggetVersion()The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.
int64 version = 4;
| Returns | |
|---|---|
| Type | Description |
long |
The version. |
hasCreateTime()
publicbooleanhasCreateTime()The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasKey()
publicbooleanhasKey()The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the key field is set. |
hasUpdateTime()
publicbooleanhasUpdateTime()The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
publicMutationResult.BuildermergeCreateTime(Timestampvalue)The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
mergeFrom(MutationResult other)
publicMutationResult.BuildermergeFrom(MutationResultother)| Parameter | |
|---|---|
| Name | Description |
other |
MutationResult |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicMutationResult.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicMutationResult.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
mergeKey(Key value)
publicMutationResult.BuildermergeKey(Keyvalue)The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Key |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalMutationResult.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
mergeUpdateTime(Timestamp value)
publicMutationResult.BuildermergeUpdateTime(Timestampvalue)The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
removeTransformResults(int index)
publicMutationResult.BuilderremoveTransformResults(intindex)The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
setConflictDetected(boolean value)
publicMutationResult.BuildersetConflictDetected(booleanvalue)Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
bool conflict_detected = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
boolean The conflictDetected to set. |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
This builder for chaining. |
setCreateTime(Timestamp value)
publicMutationResult.BuildersetCreateTime(Timestampvalue)The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
publicMutationResult.BuildersetCreateTime(Timestamp.BuilderbuilderForValue)The create time of the entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp create_time = 7;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicMutationResult.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
setKey(Key value)
publicMutationResult.BuildersetKey(Keyvalue)The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Key |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
setKey(Key.Builder builderForValue)
publicMutationResult.BuildersetKey(Key.BuilderbuilderForValue)The automatically allocated key. Set only when the mutation allocated a key.
.google.datastore.v1.Key key = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Key.Builder |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicMutationResult.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
setTransformResults(int index, Value value)
publicMutationResult.BuildersetTransformResults(intindex,Valuevalue)The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Value |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
setTransformResults(int index, Value.Builder builderForValue)
publicMutationResult.BuildersetTransformResults(intindex,Value.BuilderbuilderForValue)The results of applying each PropertyTransform, in the same order of the request.
repeated .google.datastore.v1.Value transform_results = 8;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Value.Builder |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalMutationResult.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
setUpdateTime(Timestamp value)
publicMutationResult.BuildersetUpdateTime(Timestampvalue)The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
publicMutationResult.BuildersetUpdateTime(Timestamp.BuilderbuilderForValue)The update time of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a 'delete'.
.google.protobuf.Timestamp update_time = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
|
setVersion(long value)
publicMutationResult.BuildersetVersion(longvalue)The version of the entity on the server after processing the mutation. If the mutation doesn't change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.
int64 version = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
long The version to set. |
| Returns | |
|---|---|
| Type | Description |
MutationResult.Builder |
This builder for chaining. |