Class Target.QueryTarget.Builder (3.20.0)

public static final class Target.QueryTarget.Builder extends GeneratedMessageV3.Builder<Target.QueryTarget.Builder> implements Target.QueryTargetOrBuilder

A target specified by a query.

Protobuf type google.firestore.v1.Target.QueryTarget

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Target.QueryTarget build()
Returns
TypeDescription
Target.QueryTarget

buildPartial()

public Target.QueryTarget buildPartial()
Returns
TypeDescription
Target.QueryTarget

clear()

public Target.QueryTarget.Builder clear()
Returns
TypeDescription
Target.QueryTarget.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Target.QueryTarget.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Target.QueryTarget.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Target.QueryTarget.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Target.QueryTarget.Builder
Overrides

clearParent()

public Target.QueryTarget.Builder clearParent()

The parent resource name. In the format: projects/{project_id}/databases/{database_id}/documents or projects/{project_id}/databases/{database_id}/documents/{document_path}. For example: projects/my-project/databases/my-database/documents or projects/my-project/databases/my-database/documents/chatrooms/my-chatroom

string parent = 1;

Returns
TypeDescription
Target.QueryTarget.Builder

This builder for chaining.

clearQueryType()

public Target.QueryTarget.Builder clearQueryType()
Returns
TypeDescription
Target.QueryTarget.Builder

clearStructuredQuery()

public Target.QueryTarget.Builder clearStructuredQuery()

A structured query.

.google.firestore.v1.StructuredQuery structured_query = 2;

Returns
TypeDescription
Target.QueryTarget.Builder

clone()

public Target.QueryTarget.Builder clone()
Returns
TypeDescription
Target.QueryTarget.Builder
Overrides

getDefaultInstanceForType()

public Target.QueryTarget getDefaultInstanceForType()
Returns
TypeDescription
Target.QueryTarget

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

The parent resource name. In the format: projects/{project_id}/databases/{database_id}/documents or projects/{project_id}/databases/{database_id}/documents/{document_path}. For example: projects/my-project/databases/my-database/documents or projects/my-project/databases/my-database/documents/chatrooms/my-chatroom

string parent = 1;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The parent resource name. In the format: projects/{project_id}/databases/{database_id}/documents or projects/{project_id}/databases/{database_id}/documents/{document_path}. For example: projects/my-project/databases/my-database/documents or projects/my-project/databases/my-database/documents/chatrooms/my-chatroom

string parent = 1;

Returns
TypeDescription
ByteString

The bytes for parent.

getQueryTypeCase()

public Target.QueryTarget.QueryTypeCase getQueryTypeCase()
Returns
TypeDescription
Target.QueryTarget.QueryTypeCase

getStructuredQuery()

public StructuredQuery getStructuredQuery()

A structured query.

.google.firestore.v1.StructuredQuery structured_query = 2;

Returns
TypeDescription
StructuredQuery

The structuredQuery.

getStructuredQueryBuilder()

public StructuredQuery.Builder getStructuredQueryBuilder()

A structured query.

.google.firestore.v1.StructuredQuery structured_query = 2;

Returns
TypeDescription
StructuredQuery.Builder

getStructuredQueryOrBuilder()

public StructuredQueryOrBuilder getStructuredQueryOrBuilder()

A structured query.

.google.firestore.v1.StructuredQuery structured_query = 2;

Returns
TypeDescription
StructuredQueryOrBuilder

hasStructuredQuery()

public boolean hasStructuredQuery()

A structured query.

.google.firestore.v1.StructuredQuery structured_query = 2;

Returns
TypeDescription
boolean

Whether the structuredQuery field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Target.QueryTarget other)

public Target.QueryTarget.Builder mergeFrom(Target.QueryTarget other)
Parameter
NameDescription
otherTarget.QueryTarget
Returns
TypeDescription
Target.QueryTarget.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Target.QueryTarget.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Target.QueryTarget.Builder
Overrides

mergeStructuredQuery(StructuredQuery value)

public Target.QueryTarget.Builder mergeStructuredQuery(StructuredQuery value)

A structured query.

.google.firestore.v1.StructuredQuery structured_query = 2;

Parameter
NameDescription
valueStructuredQuery
Returns
TypeDescription
Target.QueryTarget.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Target.QueryTarget.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Target.QueryTarget.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public Target.QueryTarget.Builder setParent(String value)

The parent resource name. In the format: projects/{project_id}/databases/{database_id}/documents or projects/{project_id}/databases/{database_id}/documents/{document_path}. For example: projects/my-project/databases/my-database/documents or projects/my-project/databases/my-database/documents/chatrooms/my-chatroom

string parent = 1;

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
Target.QueryTarget.Builder

This builder for chaining.

setParentBytes(ByteString value)

public Target.QueryTarget.Builder setParentBytes(ByteString value)

The parent resource name. In the format: projects/{project_id}/databases/{database_id}/documents or projects/{project_id}/databases/{database_id}/documents/{document_path}. For example: projects/my-project/databases/my-database/documents or projects/my-project/databases/my-database/documents/chatrooms/my-chatroom

string parent = 1;

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
Target.QueryTarget.Builder

This builder for chaining.

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

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

setStructuredQuery(StructuredQuery value)

public Target.QueryTarget.Builder setStructuredQuery(StructuredQuery value)

A structured query.

.google.firestore.v1.StructuredQuery structured_query = 2;

Parameter
NameDescription
valueStructuredQuery
Returns
TypeDescription
Target.QueryTarget.Builder

setStructuredQuery(StructuredQuery.Builder builderForValue)

public Target.QueryTarget.Builder setStructuredQuery(StructuredQuery.Builder builderForValue)

A structured query.

.google.firestore.v1.StructuredQuery structured_query = 2;

Parameter
NameDescription
builderForValueStructuredQuery.Builder
Returns
TypeDescription
Target.QueryTarget.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Target.QueryTarget.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Target.QueryTarget.Builder
Overrides