public static final class StructuredQuery.CollectionSelector.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.CollectionSelector.Builder> implements StructuredQuery.CollectionSelectorOrBuilder
A selection of a collection, such as `messages as m1`.Protobuf type
google.firestore.v1.StructuredQuery.CollectionSelector
Modifier and Type | Method and Description |
---|---|
StructuredQuery.CollectionSelector.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StructuredQuery.CollectionSelector |
build() |
StructuredQuery.CollectionSelector |
buildPartial() |
StructuredQuery.CollectionSelector.Builder |
clear() |
StructuredQuery.CollectionSelector.Builder |
clearAllDescendants()
When false, selects only collections that are immediate children of
the `parent` specified in the containing `RunQueryRequest`.
|
StructuredQuery.CollectionSelector.Builder |
clearCollectionId()
The collection ID.
|
StructuredQuery.CollectionSelector.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
StructuredQuery.CollectionSelector.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
StructuredQuery.CollectionSelector.Builder |
clone() |
boolean |
getAllDescendants()
When false, selects only collections that are immediate children of
the `parent` specified in the containing `RunQueryRequest`.
|
String |
getCollectionId()
The collection ID.
|
com.google.protobuf.ByteString |
getCollectionIdBytes()
The collection ID.
|
StructuredQuery.CollectionSelector |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StructuredQuery.CollectionSelector.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StructuredQuery.CollectionSelector.Builder |
mergeFrom(com.google.protobuf.Message other) |
StructuredQuery.CollectionSelector.Builder |
mergeFrom(StructuredQuery.CollectionSelector other) |
StructuredQuery.CollectionSelector.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StructuredQuery.CollectionSelector.Builder |
setAllDescendants(boolean value)
When false, selects only collections that are immediate children of
the `parent` specified in the containing `RunQueryRequest`.
|
StructuredQuery.CollectionSelector.Builder |
setCollectionId(String value)
The collection ID.
|
StructuredQuery.CollectionSelector.Builder |
setCollectionIdBytes(com.google.protobuf.ByteString value)
The collection ID.
|
StructuredQuery.CollectionSelector.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StructuredQuery.CollectionSelector.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
StructuredQuery.CollectionSelector.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.CollectionSelector.Builder>
public StructuredQuery.CollectionSelector.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.CollectionSelector.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.CollectionSelector.Builder>
public StructuredQuery.CollectionSelector getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public StructuredQuery.CollectionSelector build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public StructuredQuery.CollectionSelector buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public StructuredQuery.CollectionSelector.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.CollectionSelector.Builder>
public StructuredQuery.CollectionSelector.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.CollectionSelector.Builder>
public StructuredQuery.CollectionSelector.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.CollectionSelector.Builder>
public StructuredQuery.CollectionSelector.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.CollectionSelector.Builder>
public StructuredQuery.CollectionSelector.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.CollectionSelector.Builder>
public StructuredQuery.CollectionSelector.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.CollectionSelector.Builder>
public StructuredQuery.CollectionSelector.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<StructuredQuery.CollectionSelector.Builder>
public StructuredQuery.CollectionSelector.Builder mergeFrom(StructuredQuery.CollectionSelector other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.CollectionSelector.Builder>
public StructuredQuery.CollectionSelector.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<StructuredQuery.CollectionSelector.Builder>
IOException
public String getCollectionId()
The collection ID. When set, selects only collections with this ID.
string collection_id = 2;
getCollectionId
in interface StructuredQuery.CollectionSelectorOrBuilder
public com.google.protobuf.ByteString getCollectionIdBytes()
The collection ID. When set, selects only collections with this ID.
string collection_id = 2;
getCollectionIdBytes
in interface StructuredQuery.CollectionSelectorOrBuilder
public StructuredQuery.CollectionSelector.Builder setCollectionId(String value)
The collection ID. When set, selects only collections with this ID.
string collection_id = 2;
value
- The collectionId to set.public StructuredQuery.CollectionSelector.Builder clearCollectionId()
The collection ID. When set, selects only collections with this ID.
string collection_id = 2;
public StructuredQuery.CollectionSelector.Builder setCollectionIdBytes(com.google.protobuf.ByteString value)
The collection ID. When set, selects only collections with this ID.
string collection_id = 2;
value
- The bytes for collectionId to set.public boolean getAllDescendants()
When false, selects only collections that are immediate children of the `parent` specified in the containing `RunQueryRequest`. When true, selects all descendant collections.
bool all_descendants = 3;
getAllDescendants
in interface StructuredQuery.CollectionSelectorOrBuilder
public StructuredQuery.CollectionSelector.Builder setAllDescendants(boolean value)
When false, selects only collections that are immediate children of the `parent` specified in the containing `RunQueryRequest`. When true, selects all descendant collections.
bool all_descendants = 3;
value
- The allDescendants to set.public StructuredQuery.CollectionSelector.Builder clearAllDescendants()
When false, selects only collections that are immediate children of the `parent` specified in the containing `RunQueryRequest`. When true, selects all descendant collections.
bool all_descendants = 3;
public final StructuredQuery.CollectionSelector.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.CollectionSelector.Builder>
public final StructuredQuery.CollectionSelector.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.CollectionSelector.Builder>
Copyright © 2023 Google LLC. All rights reserved.