Class Target.QueryTarget.Builder (3.30.2)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Target.QueryTarget.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Target.QueryTarget.Builder
Overrides

build()

public Target.QueryTarget build()
Returns
Type Description
Target.QueryTarget

buildPartial()

public Target.QueryTarget buildPartial()
Returns
Type Description
Target.QueryTarget

clear()

public Target.QueryTarget.Builder clear()
Returns
Type Description
Target.QueryTarget.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Target.QueryTarget.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Target.QueryTarget.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Target.QueryTarget.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
Target.QueryTarget.Builder

This builder for chaining.

clearQueryType()

public Target.QueryTarget.Builder clearQueryType()
Returns
Type Description
Target.QueryTarget.Builder

clearStructuredQuery()

public Target.QueryTarget.Builder clearStructuredQuery()

A structured query.

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

Returns
Type Description
Target.QueryTarget.Builder

clone()

public Target.QueryTarget.Builder clone()
Returns
Type Description
Target.QueryTarget.Builder
Overrides

getDefaultInstanceForType()

public Target.QueryTarget getDefaultInstanceForType()
Returns
Type Description
Target.QueryTarget

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for parent.

getQueryTypeCase()

public Target.QueryTarget.QueryTypeCase getQueryTypeCase()
Returns
Type Description
Target.QueryTarget.QueryTypeCase

getStructuredQuery()

public StructuredQuery getStructuredQuery()

A structured query.

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

Returns
Type Description
StructuredQuery

The structuredQuery.

getStructuredQueryBuilder()

public StructuredQuery.Builder getStructuredQueryBuilder()

A structured query.

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

Returns
Type Description
StructuredQuery.Builder

getStructuredQueryOrBuilder()

public StructuredQueryOrBuilder getStructuredQueryOrBuilder()

A structured query.

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

Returns
Type Description
StructuredQueryOrBuilder

hasStructuredQuery()

public boolean hasStructuredQuery()

A structured query.

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

Returns
Type Description
boolean

Whether the structuredQuery field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Target.QueryTarget other)

public Target.QueryTarget.Builder mergeFrom(Target.QueryTarget other)
Parameter
Name Description
other Target.QueryTarget
Returns
Type Description
Target.QueryTarget.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Target.QueryTarget.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Target.QueryTarget.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Target.QueryTarget.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value StructuredQuery
Returns
Type Description
Target.QueryTarget.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Target.QueryTarget.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Target.QueryTarget.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Target.QueryTarget.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value StructuredQuery
Returns
Type Description
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
Name Description
builderForValue StructuredQuery.Builder
Returns
Type Description
Target.QueryTarget.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Target.QueryTarget.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Target.QueryTarget.Builder
Overrides