Reference documentation and code samples for the Google Cloud Vector Search V1 Client class UnaryQuery.
A query that applies a unary operator to a sub-query.
Generated from protobuf message google.cloud.vectorsearch.v1.UnaryQuery
Namespace
Google \ Cloud \ VectorSearch \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ op |
int
Required. The unary operator to apply. |
↳ sub_query |
StructuredQuery
Required. The sub-query the operator is applied to. |
getOp
Required. The unary operator to apply.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Operator. |
setOp
Required. The unary operator to apply.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Operator. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSubQuery
Required. The sub-query the operator is applied to.
| Returns | |
|---|---|
| Type | Description |
StructuredQuery|null |
|
hasSubQuery
clearSubQuery
setSubQuery
Required. The sub-query the operator is applied to.
| Parameter | |
|---|---|
| Name | Description |
var |
StructuredQuery
|
| Returns | |
|---|---|
| Type | Description |
$this |
|