Interface StructuredQuery.ProjectionOrBuilder (3.20.0)

public static interface StructuredQuery.ProjectionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getFields(int index)

public abstract 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

getFieldsCount()

public abstract 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 abstract 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 abstract 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 abstract 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>