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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
Name | Description |
values | Iterable<? extends com.google.firestore.v1.StructuredQuery.FieldReference>
|
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StructuredQuery.Projection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public StructuredQuery.Projection build()
Returns
buildPartial()
public StructuredQuery.Projection buildPartial()
Returns
clear()
public StructuredQuery.Projection.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public StructuredQuery.Projection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
clearOneof(Descriptors.OneofDescriptor oneof)
public StructuredQuery.Projection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public StructuredQuery.Projection.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public StructuredQuery.Projection getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
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
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
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
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
Returns
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
Type | Description |
List<? extends com.google.firestore.v1.StructuredQuery.FieldReferenceOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(StructuredQuery.Projection other)
public StructuredQuery.Projection.Builder mergeFrom(StructuredQuery.Projection other)
Parameter
Returns
public StructuredQuery.Projection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public StructuredQuery.Projection.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StructuredQuery.Projection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public StructuredQuery.Projection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StructuredQuery.Projection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final StructuredQuery.Projection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides