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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
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>
|
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;
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;
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;
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;
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;
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 |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public StructuredQuery.Projection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public StructuredQuery.Projection build()
buildPartial()
public StructuredQuery.Projection buildPartial()
clear()
public StructuredQuery.Projection.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public StructuredQuery.Projection.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public StructuredQuery.Projection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public StructuredQuery.Projection.Builder clone()
Overrides
getDefaultInstanceForType()
public StructuredQuery.Projection getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
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;
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 |
---|
Type | Description |
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;
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 |
---|
Name | Description |
index | int
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(StructuredQuery.Projection other)
public StructuredQuery.Projection.Builder mergeFrom(StructuredQuery.Projection other)
public StructuredQuery.Projection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public StructuredQuery.Projection.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final StructuredQuery.Projection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public StructuredQuery.Projection.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public StructuredQuery.Projection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final StructuredQuery.Projection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides