public static final class WriteResult.Builder extends GeneratedMessageV3.Builder<WriteResult.Builder> implements WriteResultOrBuilder
The result of applying a write.
Protobuf type google.firestore.v1.WriteResult
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
public WriteResult.Builder addAllTransformResults(Iterable<? extends Value> values)
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.firestore.v1.Value>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WriteResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public WriteResult.Builder addTransformResults(Value value)
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
Parameter |
Name |
Description |
value |
Value
|
public WriteResult.Builder addTransformResults(Value.Builder builderForValue)
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
public WriteResult.Builder addTransformResults(int index, Value value)
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
Parameters |
Name |
Description |
index |
int
|
value |
Value
|
public WriteResult.Builder addTransformResults(int index, Value.Builder builderForValue)
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
public Value.Builder addTransformResultsBuilder()
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
public Value.Builder addTransformResultsBuilder(int index)
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
Parameter |
Name |
Description |
index |
int
|
build()
public WriteResult build()
buildPartial()
public WriteResult buildPartial()
clear()
public WriteResult.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public WriteResult.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public WriteResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public WriteResult.Builder clearTransformResults()
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
clearUpdateTime()
public WriteResult.Builder clearUpdateTime()
The last update time of the document after applying the write. Not set
after a delete
.
If the write did not actually change the document, this will be the
previous update_time.
.google.protobuf.Timestamp update_time = 1;
clone()
public WriteResult.Builder clone()
Overrides
getDefaultInstanceForType()
public WriteResult getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Value getTransformResults(int index)
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
Parameter |
Name |
Description |
index |
int
|
Returns |
Type |
Description |
Value |
|
public Value.Builder getTransformResultsBuilder(int index)
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
Parameter |
Name |
Description |
index |
int
|
public List<Value.Builder> getTransformResultsBuilderList()
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
public int getTransformResultsCount()
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
Returns |
Type |
Description |
int |
|
public List<Value> getTransformResultsList()
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
public ValueOrBuilder getTransformResultsOrBuilder(int index)
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
Parameter |
Name |
Description |
index |
int
|
public List<? extends ValueOrBuilder> getTransformResultsOrBuilderList()
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
Returns |
Type |
Description |
List<? extends com.google.firestore.v1.ValueOrBuilder> |
|
getUpdateTime()
public Timestamp getUpdateTime()
The last update time of the document after applying the write. Not set
after a delete
.
If the write did not actually change the document, this will be the
previous update_time.
.google.protobuf.Timestamp update_time = 1;
Returns |
Type |
Description |
Timestamp |
The updateTime.
|
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
The last update time of the document after applying the write. Not set
after a delete
.
If the write did not actually change the document, this will be the
previous update_time.
.google.protobuf.Timestamp update_time = 1;
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
The last update time of the document after applying the write. Not set
after a delete
.
If the write did not actually change the document, this will be the
previous update_time.
.google.protobuf.Timestamp update_time = 1;
hasUpdateTime()
public boolean hasUpdateTime()
The last update time of the document after applying the write. Not set
after a delete
.
If the write did not actually change the document, this will be the
previous update_time.
.google.protobuf.Timestamp update_time = 1;
Returns |
Type |
Description |
boolean |
Whether the updateTime field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(WriteResult other)
public WriteResult.Builder mergeFrom(WriteResult other)
public WriteResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public WriteResult.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WriteResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
mergeUpdateTime(Timestamp value)
public WriteResult.Builder mergeUpdateTime(Timestamp value)
The last update time of the document after applying the write. Not set
after a delete
.
If the write did not actually change the document, this will be the
previous update_time.
.google.protobuf.Timestamp update_time = 1;
public WriteResult.Builder removeTransformResults(int index)
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public WriteResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WriteResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public WriteResult.Builder setTransformResults(int index, Value value)
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
Parameters |
Name |
Description |
index |
int
|
value |
Value
|
public WriteResult.Builder setTransformResults(int index, Value.Builder builderForValue)
The results of applying each
DocumentTransform.FieldTransform,
in the same order.
repeated .google.firestore.v1.Value transform_results = 2;
setUnknownFields(UnknownFieldSet unknownFields)
public final WriteResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setUpdateTime(Timestamp value)
public WriteResult.Builder setUpdateTime(Timestamp value)
The last update time of the document after applying the write. Not set
after a delete
.
If the write did not actually change the document, this will be the
previous update_time.
.google.protobuf.Timestamp update_time = 1;
setUpdateTime(Timestamp.Builder builderForValue)
public WriteResult.Builder setUpdateTime(Timestamp.Builder builderForValue)
The last update time of the document after applying the write. Not set
after a delete
.
If the write did not actually change the document, this will be the
previous update_time.
.google.protobuf.Timestamp update_time = 1;
Parameter |
Name |
Description |
builderForValue |
Builder
|