Class WriteResult.Builder (3.9.2)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllTransformResults(Iterable<? extends Value> values)

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
NameDescription
valuesIterable<? extends com.google.firestore.v1.Value>
Returns
TypeDescription
WriteResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WriteResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WriteResult.Builder
Overrides

addTransformResults(Value value)

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
NameDescription
valueValue
Returns
TypeDescription
WriteResult.Builder

addTransformResults(Value.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueValue.Builder
Returns
TypeDescription
WriteResult.Builder

addTransformResults(int index, Value value)

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
NameDescription
indexint
valueValue
Returns
TypeDescription
WriteResult.Builder

addTransformResults(int index, Value.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueValue.Builder
Returns
TypeDescription
WriteResult.Builder

addTransformResultsBuilder()

public Value.Builder addTransformResultsBuilder()

The results of applying each DocumentTransform.FieldTransform, in the same order.

repeated .google.firestore.v1.Value transform_results = 2;

Returns
TypeDescription
Value.Builder

addTransformResultsBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
Value.Builder

build()

public WriteResult build()
Returns
TypeDescription
WriteResult

buildPartial()

public WriteResult buildPartial()
Returns
TypeDescription
WriteResult

clear()

public WriteResult.Builder clear()
Returns
TypeDescription
WriteResult.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public WriteResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
WriteResult.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public WriteResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
WriteResult.Builder
Overrides

clearTransformResults()

public WriteResult.Builder clearTransformResults()

The results of applying each DocumentTransform.FieldTransform, in the same order.

repeated .google.firestore.v1.Value transform_results = 2;

Returns
TypeDescription
WriteResult.Builder

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;

Returns
TypeDescription
WriteResult.Builder

clone()

public WriteResult.Builder clone()
Returns
TypeDescription
WriteResult.Builder
Overrides

getDefaultInstanceForType()

public WriteResult getDefaultInstanceForType()
Returns
TypeDescription
WriteResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTransformResults(int index)

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
NameDescription
indexint
Returns
TypeDescription
Value

getTransformResultsBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
Value.Builder

getTransformResultsBuilderList()

public List<Value.Builder> getTransformResultsBuilderList()

The results of applying each DocumentTransform.FieldTransform, in the same order.

repeated .google.firestore.v1.Value transform_results = 2;

Returns
TypeDescription
List<Builder>

getTransformResultsCount()

public int getTransformResultsCount()

The results of applying each DocumentTransform.FieldTransform, in the same order.

repeated .google.firestore.v1.Value transform_results = 2;

Returns
TypeDescription
int

getTransformResultsList()

public List<Value> getTransformResultsList()

The results of applying each DocumentTransform.FieldTransform, in the same order.

repeated .google.firestore.v1.Value transform_results = 2;

Returns
TypeDescription
List<Value>

getTransformResultsOrBuilder(int index)

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
NameDescription
indexint
Returns
TypeDescription
ValueOrBuilder

getTransformResultsOrBuilderList()

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
TypeDescription
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
TypeDescription
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;

Returns
TypeDescription
Builder

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;

Returns
TypeDescription
TimestampOrBuilder

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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WriteResult other)

public WriteResult.Builder mergeFrom(WriteResult other)
Parameter
NameDescription
otherWriteResult
Returns
TypeDescription
WriteResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WriteResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WriteResult.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public WriteResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
WriteResult.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WriteResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WriteResult.Builder
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;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WriteResult.Builder

removeTransformResults(int index)

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
NameDescription
indexint
Returns
TypeDescription
WriteResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public WriteResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WriteResult.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public WriteResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WriteResult.Builder
Overrides

setTransformResults(int index, Value value)

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
NameDescription
indexint
valueValue
Returns
TypeDescription
WriteResult.Builder

setTransformResults(int index, Value.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueValue.Builder
Returns
TypeDescription
WriteResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final WriteResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WriteResult.Builder
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;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
WriteResult.Builder

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
NameDescription
builderForValueBuilder
Returns
TypeDescription
WriteResult.Builder