Class StructuredQuery.Projection.Builder (3.9.4)

public static final class StructuredQuery.Projection.Builder extends GeneratedMessageV3.Builder<StructuredQuery.Projection.Builder> implements StructuredQuery.ProjectionOrBuilder

The projection of document's fields to return.

Protobuf type google.firestore.v1.StructuredQuery.Projection

Static Methods

getDescriptor()

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

Methods

addAllFields(Iterable<? extends StructuredQuery.FieldReference> values)

public StructuredQuery.Projection.Builder addAllFields(Iterable<? extends StructuredQuery.FieldReference> values)

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.firestore.v1.StructuredQuery.FieldReference>
Returns
TypeDescription
StructuredQuery.Projection.Builder

addFields(StructuredQuery.FieldReference value)

public StructuredQuery.Projection.Builder addFields(StructuredQuery.FieldReference value)

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Parameter
NameDescription
valueStructuredQuery.FieldReference
Returns
TypeDescription
StructuredQuery.Projection.Builder

addFields(StructuredQuery.FieldReference.Builder builderForValue)

public StructuredQuery.Projection.Builder addFields(StructuredQuery.FieldReference.Builder builderForValue)

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Parameter
NameDescription
builderForValueStructuredQuery.FieldReference.Builder
Returns
TypeDescription
StructuredQuery.Projection.Builder

addFields(int index, StructuredQuery.FieldReference value)

public StructuredQuery.Projection.Builder addFields(int index, StructuredQuery.FieldReference value)

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Parameters
NameDescription
indexint
valueStructuredQuery.FieldReference
Returns
TypeDescription
StructuredQuery.Projection.Builder

addFields(int index, StructuredQuery.FieldReference.Builder builderForValue)

public StructuredQuery.Projection.Builder addFields(int index, StructuredQuery.FieldReference.Builder builderForValue)

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Parameters
NameDescription
indexint
builderForValueStructuredQuery.FieldReference.Builder
Returns
TypeDescription
StructuredQuery.Projection.Builder

addFieldsBuilder()

public StructuredQuery.FieldReference.Builder addFieldsBuilder()

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Returns
TypeDescription
StructuredQuery.FieldReference.Builder

addFieldsBuilder(int index)

public StructuredQuery.FieldReference.Builder addFieldsBuilder(int index)

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
StructuredQuery.FieldReference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public StructuredQuery.Projection build()
Returns
TypeDescription
StructuredQuery.Projection

buildPartial()

public StructuredQuery.Projection buildPartial()
Returns
TypeDescription
StructuredQuery.Projection

clear()

public StructuredQuery.Projection.Builder clear()
Returns
TypeDescription
StructuredQuery.Projection.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearFields()

public StructuredQuery.Projection.Builder clearFields()

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Returns
TypeDescription
StructuredQuery.Projection.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public StructuredQuery.Projection.Builder clone()
Returns
TypeDescription
StructuredQuery.Projection.Builder
Overrides

getDefaultInstanceForType()

public StructuredQuery.Projection getDefaultInstanceForType()
Returns
TypeDescription
StructuredQuery.Projection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFields(int index)

public StructuredQuery.FieldReference getFields(int index)

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
StructuredQuery.FieldReference

getFieldsBuilder(int index)

public StructuredQuery.FieldReference.Builder getFieldsBuilder(int index)

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
StructuredQuery.FieldReference.Builder

getFieldsBuilderList()

public List<StructuredQuery.FieldReference.Builder> getFieldsBuilderList()

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Returns
TypeDescription
List<Builder>

getFieldsCount()

public int getFieldsCount()

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Returns
TypeDescription
int

getFieldsList()

public List<StructuredQuery.FieldReference> getFieldsList()

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Returns
TypeDescription
List<FieldReference>

getFieldsOrBuilder(int index)

public StructuredQuery.FieldReferenceOrBuilder getFieldsOrBuilder(int index)

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
StructuredQuery.FieldReferenceOrBuilder

getFieldsOrBuilderList()

public List<? extends StructuredQuery.FieldReferenceOrBuilder> getFieldsOrBuilderList()

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Returns
TypeDescription
List<? extends com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(StructuredQuery.Projection other)

public StructuredQuery.Projection.Builder mergeFrom(StructuredQuery.Projection other)
Parameter
NameDescription
otherStructuredQuery.Projection
Returns
TypeDescription
StructuredQuery.Projection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeFields(int index)

public StructuredQuery.Projection.Builder removeFields(int index)

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
StructuredQuery.Projection.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFields(int index, StructuredQuery.FieldReference value)

public StructuredQuery.Projection.Builder setFields(int index, StructuredQuery.FieldReference value)

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Parameters
NameDescription
indexint
valueStructuredQuery.FieldReference
Returns
TypeDescription
StructuredQuery.Projection.Builder

setFields(int index, StructuredQuery.FieldReference.Builder builderForValue)

public StructuredQuery.Projection.Builder setFields(int index, StructuredQuery.FieldReference.Builder builderForValue)

The fields to return. If empty, all fields are returned. To only return the name of the document, use ['name'].

repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;

Parameters
NameDescription
indexint
builderForValueStructuredQuery.FieldReference.Builder
Returns
TypeDescription
StructuredQuery.Projection.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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