Class DocumentTransform.Builder (3.13.2)

public static final class DocumentTransform.Builder extends GeneratedMessageV3.Builder<DocumentTransform.Builder> implements DocumentTransformOrBuilder

A transformation of a document.

Protobuf type google.firestore.v1.DocumentTransform

Static Methods

getDescriptor()

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

Methods

addAllFieldTransforms(Iterable<? extends DocumentTransform.FieldTransform> values)

public DocumentTransform.Builder addAllFieldTransforms(Iterable<? extends DocumentTransform.FieldTransform> values)

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.firestore.v1.DocumentTransform.FieldTransform>
Returns
TypeDescription
DocumentTransform.Builder

addFieldTransforms(DocumentTransform.FieldTransform value)

public DocumentTransform.Builder addFieldTransforms(DocumentTransform.FieldTransform value)

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Parameter
NameDescription
valueDocumentTransform.FieldTransform
Returns
TypeDescription
DocumentTransform.Builder

addFieldTransforms(DocumentTransform.FieldTransform.Builder builderForValue)

public DocumentTransform.Builder addFieldTransforms(DocumentTransform.FieldTransform.Builder builderForValue)

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Parameter
NameDescription
builderForValueDocumentTransform.FieldTransform.Builder
Returns
TypeDescription
DocumentTransform.Builder

addFieldTransforms(int index, DocumentTransform.FieldTransform value)

public DocumentTransform.Builder addFieldTransforms(int index, DocumentTransform.FieldTransform value)

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Parameters
NameDescription
indexint
valueDocumentTransform.FieldTransform
Returns
TypeDescription
DocumentTransform.Builder

addFieldTransforms(int index, DocumentTransform.FieldTransform.Builder builderForValue)

public DocumentTransform.Builder addFieldTransforms(int index, DocumentTransform.FieldTransform.Builder builderForValue)

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Parameters
NameDescription
indexint
builderForValueDocumentTransform.FieldTransform.Builder
Returns
TypeDescription
DocumentTransform.Builder

addFieldTransformsBuilder()

public DocumentTransform.FieldTransform.Builder addFieldTransformsBuilder()

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Returns
TypeDescription
DocumentTransform.FieldTransform.Builder

addFieldTransformsBuilder(int index)

public DocumentTransform.FieldTransform.Builder addFieldTransformsBuilder(int index)

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
DocumentTransform.FieldTransform.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DocumentTransform build()
Returns
TypeDescription
DocumentTransform

buildPartial()

public DocumentTransform buildPartial()
Returns
TypeDescription
DocumentTransform

clear()

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

clearDocument()

public DocumentTransform.Builder clearDocument()

The name of the document to transform.

string document = 1;

Returns
TypeDescription
DocumentTransform.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFieldTransforms()

public DocumentTransform.Builder clearFieldTransforms()

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Returns
TypeDescription
DocumentTransform.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DocumentTransform getDefaultInstanceForType()
Returns
TypeDescription
DocumentTransform

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocument()

public String getDocument()

The name of the document to transform.

string document = 1;

Returns
TypeDescription
String

The document.

getDocumentBytes()

public ByteString getDocumentBytes()

The name of the document to transform.

string document = 1;

Returns
TypeDescription
ByteString

The bytes for document.

getFieldTransforms(int index)

public DocumentTransform.FieldTransform getFieldTransforms(int index)

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
DocumentTransform.FieldTransform

getFieldTransformsBuilder(int index)

public DocumentTransform.FieldTransform.Builder getFieldTransformsBuilder(int index)

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
DocumentTransform.FieldTransform.Builder

getFieldTransformsBuilderList()

public List<DocumentTransform.FieldTransform.Builder> getFieldTransformsBuilderList()

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Returns
TypeDescription
List<Builder>

getFieldTransformsCount()

public int getFieldTransformsCount()

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Returns
TypeDescription
int

getFieldTransformsList()

public List<DocumentTransform.FieldTransform> getFieldTransformsList()

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Returns
TypeDescription
List<FieldTransform>

getFieldTransformsOrBuilder(int index)

public DocumentTransform.FieldTransformOrBuilder getFieldTransformsOrBuilder(int index)

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
DocumentTransform.FieldTransformOrBuilder

getFieldTransformsOrBuilderList()

public List<? extends DocumentTransform.FieldTransformOrBuilder> getFieldTransformsOrBuilderList()

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Returns
TypeDescription
List<? extends com.google.firestore.v1.DocumentTransform.FieldTransformOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DocumentTransform other)

public DocumentTransform.Builder mergeFrom(DocumentTransform other)
Parameter
NameDescription
otherDocumentTransform
Returns
TypeDescription
DocumentTransform.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DocumentTransform.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DocumentTransform.Builder
Overrides

removeFieldTransforms(int index)

public DocumentTransform.Builder removeFieldTransforms(int index)

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
DocumentTransform.Builder

setDocument(String value)

public DocumentTransform.Builder setDocument(String value)

The name of the document to transform.

string document = 1;

Parameter
NameDescription
valueString

The document to set.

Returns
TypeDescription
DocumentTransform.Builder

This builder for chaining.

setDocumentBytes(ByteString value)

public DocumentTransform.Builder setDocumentBytes(ByteString value)

The name of the document to transform.

string document = 1;

Parameter
NameDescription
valueByteString

The bytes for document to set.

Returns
TypeDescription
DocumentTransform.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFieldTransforms(int index, DocumentTransform.FieldTransform value)

public DocumentTransform.Builder setFieldTransforms(int index, DocumentTransform.FieldTransform value)

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Parameters
NameDescription
indexint
valueDocumentTransform.FieldTransform
Returns
TypeDescription
DocumentTransform.Builder

setFieldTransforms(int index, DocumentTransform.FieldTransform.Builder builderForValue)

public DocumentTransform.Builder setFieldTransforms(int index, DocumentTransform.FieldTransform.Builder builderForValue)

The list of transformations to apply to the fields of the document, in order. This must not be empty.

repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;

Parameters
NameDescription
indexint
builderForValueDocumentTransform.FieldTransform.Builder
Returns
TypeDescription
DocumentTransform.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final DocumentTransform.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DocumentTransform.Builder
Overrides