Class CombinedQuery.Builder (0.21.0)

public static final class CombinedQuery.Builder extends GeneratedMessage.Builder<CombinedQuery.Builder> implements CombinedQueryOrBuilder

A query that combines multiple sub-queries with a boolean operator.

Protobuf type google.cloud.vectorsearch.v1beta.CombinedQuery

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSubQueries(Iterable<? extends StructuredQuery> values)

public CombinedQuery.Builder addAllSubQueries(Iterable<? extends StructuredQuery> values)

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.vectorsearch.v1beta.StructuredQuery>
Returns
Type Description
CombinedQuery.Builder

addSubQueries(StructuredQuery value)

public CombinedQuery.Builder addSubQueries(StructuredQuery value)

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value StructuredQuery
Returns
Type Description
CombinedQuery.Builder

addSubQueries(StructuredQuery.Builder builderForValue)

public CombinedQuery.Builder addSubQueries(StructuredQuery.Builder builderForValue)

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue StructuredQuery.Builder
Returns
Type Description
CombinedQuery.Builder

addSubQueries(int index, StructuredQuery value)

public CombinedQuery.Builder addSubQueries(int index, StructuredQuery value)

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value StructuredQuery
Returns
Type Description
CombinedQuery.Builder

addSubQueries(int index, StructuredQuery.Builder builderForValue)

public CombinedQuery.Builder addSubQueries(int index, StructuredQuery.Builder builderForValue)

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue StructuredQuery.Builder
Returns
Type Description
CombinedQuery.Builder

addSubQueriesBuilder()

public StructuredQuery.Builder addSubQueriesBuilder()

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
StructuredQuery.Builder

addSubQueriesBuilder(int index)

public StructuredQuery.Builder addSubQueriesBuilder(int index)

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
StructuredQuery.Builder

build()

public CombinedQuery build()
Returns
Type Description
CombinedQuery

buildPartial()

public CombinedQuery buildPartial()
Returns
Type Description
CombinedQuery

clear()

public CombinedQuery.Builder clear()
Returns
Type Description
CombinedQuery.Builder
Overrides

clearOp()

public CombinedQuery.Builder clearOp()

Required. The boolean operator used to combine the sub-queries.

.google.cloud.vectorsearch.v1beta.CombinedQuery.Operator op = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CombinedQuery.Builder

This builder for chaining.

clearSubQueries()

public CombinedQuery.Builder clearSubQueries()

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CombinedQuery.Builder

getDefaultInstanceForType()

public CombinedQuery getDefaultInstanceForType()
Returns
Type Description
CombinedQuery

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getOp()

public CombinedQuery.Operator getOp()

Required. The boolean operator used to combine the sub-queries.

.google.cloud.vectorsearch.v1beta.CombinedQuery.Operator op = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CombinedQuery.Operator

The op.

getOpValue()

public int getOpValue()

Required. The boolean operator used to combine the sub-queries.

.google.cloud.vectorsearch.v1beta.CombinedQuery.Operator op = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for op.

getSubQueries(int index)

public StructuredQuery getSubQueries(int index)

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
StructuredQuery

getSubQueriesBuilder(int index)

public StructuredQuery.Builder getSubQueriesBuilder(int index)

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
StructuredQuery.Builder

getSubQueriesBuilderList()

public List<StructuredQuery.Builder> getSubQueriesBuilderList()

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getSubQueriesCount()

public int getSubQueriesCount()

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getSubQueriesList()

public List<StructuredQuery> getSubQueriesList()

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<StructuredQuery>

getSubQueriesOrBuilder(int index)

public StructuredQueryOrBuilder getSubQueriesOrBuilder(int index)

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
StructuredQueryOrBuilder

getSubQueriesOrBuilderList()

public List<? extends StructuredQueryOrBuilder> getSubQueriesOrBuilderList()

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.vectorsearch.v1beta.StructuredQueryOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CombinedQuery other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CombinedQuery.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CombinedQuery.Builder
Overrides

removeSubQueries(int index)

public CombinedQuery.Builder removeSubQueries(int index)

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
CombinedQuery.Builder

setOp(CombinedQuery.Operator value)

public CombinedQuery.Builder setOp(CombinedQuery.Operator value)

Required. The boolean operator used to combine the sub-queries.

.google.cloud.vectorsearch.v1beta.CombinedQuery.Operator op = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value CombinedQuery.Operator

The op to set.

Returns
Type Description
CombinedQuery.Builder

This builder for chaining.

setOpValue(int value)

public CombinedQuery.Builder setOpValue(int value)

Required. The boolean operator used to combine the sub-queries.

.google.cloud.vectorsearch.v1beta.CombinedQuery.Operator op = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for op to set.

Returns
Type Description
CombinedQuery.Builder

This builder for chaining.

setSubQueries(int index, StructuredQuery value)

public CombinedQuery.Builder setSubQueries(int index, StructuredQuery value)

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value StructuredQuery
Returns
Type Description
CombinedQuery.Builder

setSubQueries(int index, StructuredQuery.Builder builderForValue)

public CombinedQuery.Builder setSubQueries(int index, StructuredQuery.Builder builderForValue)

Required. The sub-queries to be combined.

repeated .google.cloud.vectorsearch.v1beta.StructuredQuery sub_queries = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue StructuredQuery.Builder
Returns
Type Description
CombinedQuery.Builder