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
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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
Name | Description |
values | Iterable<? extends com.google.firestore.v1.DocumentTransform.FieldTransform>
|
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
public DocumentTransform.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public DocumentTransform build()
Returns
public DocumentTransform buildPartial()
Returns
public DocumentTransform.Builder clear()
Returns
Overrides
public DocumentTransform.Builder clearDocument()
The name of the document to transform.
string document = 1;
Returns
public DocumentTransform.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
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
public DocumentTransform.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public DocumentTransform.Builder clone()
Returns
Overrides
public DocumentTransform getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public String getDocument()
The name of the document to transform.
string document = 1;
Returns
Type | Description |
String | The document.
|
public ByteString getDocumentBytes()
The name of the document to transform.
string document = 1;
Returns
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
Returns
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
Returns
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
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
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
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
Returns
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
Type | Description |
List<? extends com.google.firestore.v1.DocumentTransform.FieldTransformOrBuilder> | |
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public DocumentTransform.Builder mergeFrom(DocumentTransform other)
Parameter
Returns
public DocumentTransform.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public DocumentTransform.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final DocumentTransform.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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
Returns
public DocumentTransform.Builder setDocument(String value)
The name of the document to transform.
string document = 1;
Parameter
Name | Description |
value | String
The document to set.
|
Returns
public DocumentTransform.Builder setDocumentBytes(ByteString value)
The name of the document to transform.
string document = 1;
Parameter
Name | Description |
value | ByteString
The bytes for document to set.
|
Returns
public DocumentTransform.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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
Returns
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
Returns
public DocumentTransform.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final DocumentTransform.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides