Class UnaryQuery.Builder (0.21.0)

public static final class UnaryQuery.Builder extends GeneratedMessage.Builder<UnaryQuery.Builder> implements UnaryQueryOrBuilder

A query that applies a unary operator to a sub-query.

Protobuf type google.cloud.vectorsearch.v1beta.UnaryQuery

Implements

UnaryQueryOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public UnaryQuery build()
Returns
Type Description
UnaryQuery

buildPartial()

public UnaryQuery buildPartial()
Returns
Type Description
UnaryQuery

clear()

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

clearOp()

public UnaryQuery.Builder clearOp()

Required. The unary operator to apply.

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

Returns
Type Description
UnaryQuery.Builder

This builder for chaining.

clearSubQuery()

public UnaryQuery.Builder clearSubQuery()

Required. The sub-query the operator is applied to.

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

Returns
Type Description
UnaryQuery.Builder

getDefaultInstanceForType()

public UnaryQuery getDefaultInstanceForType()
Returns
Type Description
UnaryQuery

getDescriptorForType()

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

getOp()

public UnaryQuery.Operator getOp()

Required. The unary operator to apply.

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

Returns
Type Description
UnaryQuery.Operator

The op.

getOpValue()

public int getOpValue()

Required. The unary operator to apply.

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

Returns
Type Description
int

The enum numeric value on the wire for op.

getSubQuery()

public StructuredQuery getSubQuery()

Required. The sub-query the operator is applied to.

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

Returns
Type Description
StructuredQuery

The subQuery.

getSubQueryBuilder()

public StructuredQuery.Builder getSubQueryBuilder()

Required. The sub-query the operator is applied to.

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

Returns
Type Description
StructuredQuery.Builder

getSubQueryOrBuilder()

public StructuredQueryOrBuilder getSubQueryOrBuilder()

Required. The sub-query the operator is applied to.

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

Returns
Type Description
StructuredQueryOrBuilder

hasSubQuery()

public boolean hasSubQuery()

Required. The sub-query the operator is applied to.

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

Returns
Type Description
boolean

Whether the subQuery field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UnaryQuery other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSubQuery(StructuredQuery value)

public UnaryQuery.Builder mergeSubQuery(StructuredQuery value)

Required. The sub-query the operator is applied to.

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

Parameter
Name Description
value StructuredQuery
Returns
Type Description
UnaryQuery.Builder

setOp(UnaryQuery.Operator value)

public UnaryQuery.Builder setOp(UnaryQuery.Operator value)

Required. The unary operator to apply.

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

Parameter
Name Description
value UnaryQuery.Operator

The op to set.

Returns
Type Description
UnaryQuery.Builder

This builder for chaining.

setOpValue(int value)

public UnaryQuery.Builder setOpValue(int value)

Required. The unary operator to apply.

.google.cloud.vectorsearch.v1beta.UnaryQuery.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
UnaryQuery.Builder

This builder for chaining.

setSubQuery(StructuredQuery value)

public UnaryQuery.Builder setSubQuery(StructuredQuery value)

Required. The sub-query the operator is applied to.

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

Parameter
Name Description
value StructuredQuery
Returns
Type Description
UnaryQuery.Builder

setSubQuery(StructuredQuery.Builder builderForValue)

public UnaryQuery.Builder setSubQuery(StructuredQuery.Builder builderForValue)

Required. The sub-query the operator is applied to.

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

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