public static final class DocumentTransform.FieldTransform.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DocumentTransform.FieldTransform.Builder> implements DocumentTransform.FieldTransformOrBuilder
A transformation of a field of the document.Protobuf type
google.firestore.v1beta1.DocumentTransform.FieldTransform| Modifier and Type | Method and Description |
|---|---|
DocumentTransform.FieldTransform.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DocumentTransform.FieldTransform |
build() |
DocumentTransform.FieldTransform |
buildPartial() |
DocumentTransform.FieldTransform.Builder |
clear() |
DocumentTransform.FieldTransform.Builder |
clearAppendMissingElements()
Append the given elements in order if they are not already present in
the current field value.
|
DocumentTransform.FieldTransform.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DocumentTransform.FieldTransform.Builder |
clearFieldPath()
The path of the field.
|
DocumentTransform.FieldTransform.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DocumentTransform.FieldTransform.Builder |
clearRemoveAllFromArray()
Remove all of the given elements from the array in the field.
|
DocumentTransform.FieldTransform.Builder |
clearSetToServerValue()
Sets the field to the given server value.
|
DocumentTransform.FieldTransform.Builder |
clearTransformType() |
DocumentTransform.FieldTransform.Builder |
clone() |
ArrayValue |
getAppendMissingElements()
Append the given elements in order if they are not already present in
the current field value.
|
ArrayValue.Builder |
getAppendMissingElementsBuilder()
Append the given elements in order if they are not already present in
the current field value.
|
ArrayValueOrBuilder |
getAppendMissingElementsOrBuilder()
Append the given elements in order if they are not already present in
the current field value.
|
DocumentTransform.FieldTransform |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFieldPath()
The path of the field.
|
com.google.protobuf.ByteString |
getFieldPathBytes()
The path of the field.
|
ArrayValue |
getRemoveAllFromArray()
Remove all of the given elements from the array in the field.
|
ArrayValue.Builder |
getRemoveAllFromArrayBuilder()
Remove all of the given elements from the array in the field.
|
ArrayValueOrBuilder |
getRemoveAllFromArrayOrBuilder()
Remove all of the given elements from the array in the field.
|
DocumentTransform.FieldTransform.ServerValue |
getSetToServerValue()
Sets the field to the given server value.
|
int |
getSetToServerValueValue()
Sets the field to the given server value.
|
DocumentTransform.FieldTransform.TransformTypeCase |
getTransformTypeCase() |
boolean |
hasAppendMissingElements()
Append the given elements in order if they are not already present in
the current field value.
|
boolean |
hasRemoveAllFromArray()
Remove all of the given elements from the array in the field.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DocumentTransform.FieldTransform.Builder |
mergeAppendMissingElements(ArrayValue value)
Append the given elements in order if they are not already present in
the current field value.
|
DocumentTransform.FieldTransform.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DocumentTransform.FieldTransform.Builder |
mergeFrom(DocumentTransform.FieldTransform other) |
DocumentTransform.FieldTransform.Builder |
mergeFrom(com.google.protobuf.Message other) |
DocumentTransform.FieldTransform.Builder |
mergeRemoveAllFromArray(ArrayValue value)
Remove all of the given elements from the array in the field.
|
DocumentTransform.FieldTransform.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DocumentTransform.FieldTransform.Builder |
setAppendMissingElements(ArrayValue.Builder builderForValue)
Append the given elements in order if they are not already present in
the current field value.
|
DocumentTransform.FieldTransform.Builder |
setAppendMissingElements(ArrayValue value)
Append the given elements in order if they are not already present in
the current field value.
|
DocumentTransform.FieldTransform.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DocumentTransform.FieldTransform.Builder |
setFieldPath(String value)
The path of the field.
|
DocumentTransform.FieldTransform.Builder |
setFieldPathBytes(com.google.protobuf.ByteString value)
The path of the field.
|
DocumentTransform.FieldTransform.Builder |
setRemoveAllFromArray(ArrayValue.Builder builderForValue)
Remove all of the given elements from the array in the field.
|
DocumentTransform.FieldTransform.Builder |
setRemoveAllFromArray(ArrayValue value)
Remove all of the given elements from the array in the field.
|
DocumentTransform.FieldTransform.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DocumentTransform.FieldTransform.Builder |
setSetToServerValue(DocumentTransform.FieldTransform.ServerValue value)
Sets the field to the given server value.
|
DocumentTransform.FieldTransform.Builder |
setSetToServerValueValue(int value)
Sets the field to the given server value.
|
DocumentTransform.FieldTransform.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentTransform.FieldTransform.Builder>public DocumentTransform.FieldTransform.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentTransform.FieldTransform.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentTransform.FieldTransform.Builder>public DocumentTransform.FieldTransform getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DocumentTransform.FieldTransform build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DocumentTransform.FieldTransform buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DocumentTransform.FieldTransform.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentTransform.FieldTransform.Builder>public DocumentTransform.FieldTransform.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentTransform.FieldTransform.Builder>public DocumentTransform.FieldTransform.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentTransform.FieldTransform.Builder>public DocumentTransform.FieldTransform.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentTransform.FieldTransform.Builder>public DocumentTransform.FieldTransform.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentTransform.FieldTransform.Builder>public DocumentTransform.FieldTransform.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentTransform.FieldTransform.Builder>public DocumentTransform.FieldTransform.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DocumentTransform.FieldTransform.Builder>public DocumentTransform.FieldTransform.Builder mergeFrom(DocumentTransform.FieldTransform other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentTransform.FieldTransform.Builder>public DocumentTransform.FieldTransform.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DocumentTransform.FieldTransform.Builder>IOExceptionpublic DocumentTransform.FieldTransform.TransformTypeCase getTransformTypeCase()
getTransformTypeCase in interface DocumentTransform.FieldTransformOrBuilderpublic DocumentTransform.FieldTransform.Builder clearTransformType()
public String getFieldPath()
The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax reference.
string field_path = 1;getFieldPath in interface DocumentTransform.FieldTransformOrBuilderpublic com.google.protobuf.ByteString getFieldPathBytes()
The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax reference.
string field_path = 1;getFieldPathBytes in interface DocumentTransform.FieldTransformOrBuilderpublic DocumentTransform.FieldTransform.Builder setFieldPath(String value)
The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax reference.
string field_path = 1;public DocumentTransform.FieldTransform.Builder clearFieldPath()
The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax reference.
string field_path = 1;public DocumentTransform.FieldTransform.Builder setFieldPathBytes(com.google.protobuf.ByteString value)
The path of the field. See [Document.fields][google.firestore.v1beta1.Document.fields] for the field path syntax reference.
string field_path = 1;public int getSetToServerValueValue()
Sets the field to the given server value.
.google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;getSetToServerValueValue in interface DocumentTransform.FieldTransformOrBuilderpublic DocumentTransform.FieldTransform.Builder setSetToServerValueValue(int value)
Sets the field to the given server value.
.google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;public DocumentTransform.FieldTransform.ServerValue getSetToServerValue()
Sets the field to the given server value.
.google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;getSetToServerValue in interface DocumentTransform.FieldTransformOrBuilderpublic DocumentTransform.FieldTransform.Builder setSetToServerValue(DocumentTransform.FieldTransform.ServerValue value)
Sets the field to the given server value.
.google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;public DocumentTransform.FieldTransform.Builder clearSetToServerValue()
Sets the field to the given server value.
.google.firestore.v1beta1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;public boolean hasAppendMissingElements()
Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue append_missing_elements = 6;hasAppendMissingElements in interface DocumentTransform.FieldTransformOrBuilderpublic ArrayValue getAppendMissingElements()
Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue append_missing_elements = 6;getAppendMissingElements in interface DocumentTransform.FieldTransformOrBuilderpublic DocumentTransform.FieldTransform.Builder setAppendMissingElements(ArrayValue value)
Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue append_missing_elements = 6;public DocumentTransform.FieldTransform.Builder setAppendMissingElements(ArrayValue.Builder builderForValue)
Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue append_missing_elements = 6;public DocumentTransform.FieldTransform.Builder mergeAppendMissingElements(ArrayValue value)
Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue append_missing_elements = 6;public DocumentTransform.FieldTransform.Builder clearAppendMissingElements()
Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue append_missing_elements = 6;public ArrayValue.Builder getAppendMissingElementsBuilder()
Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue append_missing_elements = 6;public ArrayValueOrBuilder getAppendMissingElementsOrBuilder()
Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue append_missing_elements = 6;getAppendMissingElementsOrBuilder in interface DocumentTransform.FieldTransformOrBuilderpublic boolean hasRemoveAllFromArray()
Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue remove_all_from_array = 7;hasRemoveAllFromArray in interface DocumentTransform.FieldTransformOrBuilderpublic ArrayValue getRemoveAllFromArray()
Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue remove_all_from_array = 7;getRemoveAllFromArray in interface DocumentTransform.FieldTransformOrBuilderpublic DocumentTransform.FieldTransform.Builder setRemoveAllFromArray(ArrayValue value)
Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue remove_all_from_array = 7;public DocumentTransform.FieldTransform.Builder setRemoveAllFromArray(ArrayValue.Builder builderForValue)
Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue remove_all_from_array = 7;public DocumentTransform.FieldTransform.Builder mergeRemoveAllFromArray(ArrayValue value)
Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue remove_all_from_array = 7;public DocumentTransform.FieldTransform.Builder clearRemoveAllFromArray()
Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue remove_all_from_array = 7;public ArrayValue.Builder getRemoveAllFromArrayBuilder()
Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue remove_all_from_array = 7;public ArrayValueOrBuilder getRemoveAllFromArrayOrBuilder()
Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
.google.firestore.v1beta1.ArrayValue remove_all_from_array = 7;getRemoveAllFromArrayOrBuilder in interface DocumentTransform.FieldTransformOrBuilderpublic final DocumentTransform.FieldTransform.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentTransform.FieldTransform.Builder>public final DocumentTransform.FieldTransform.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DocumentTransform.FieldTransform.Builder>Copyright © 2018 Google LLC. All rights reserved.