Reference documentation and code samples for the Google Cloud Vector Search V1 Client class OutputFields.
Defines an output fields struct for data in DataObject.
Output fields are opt-in. A search or query result contains only the data
object name and ID, plus the fields listed here. If this message is unset or
a list is empty, the corresponding part of the data object (data,
vectors or metadata) is omitted from the result; it is not an indication
that the stored data object is empty. Use "*" in a list to return all
fields of that kind.
Generated from protobuf message google.cloud.vectorsearch.v1.OutputFields
Namespace
Google \ Cloud \ VectorSearch \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ data_fields |
string[]
Optional. The fields from the data fields to include in the output. Use |
↳ vector_fields |
string[]
Optional. The fields from the vector fields to include in the output. Use |
↳ metadata_fields |
string[]
Optional. The DataObject metadata fields to include in the output: |
getDataFields
Optional. The fields from the data fields to include in the output. Use
"*" to include all data fields. If empty, data is omitted from results.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setDataFields
Optional. The fields from the data fields to include in the output. Use
"*" to include all data fields. If empty, data is omitted from results.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getVectorFields
Optional. The fields from the vector fields to include in the output. Use
"*" to include all vector fields. If empty, vectors is omitted from
results.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setVectorFields
Optional. The fields from the vector fields to include in the output. Use
"*" to include all vector fields. If empty, vectors is omitted from
results.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMetadataFields
Optional. The DataObject metadata fields to include in the output:
create_time, update_time and etag. Use "*" to include all metadata
fields. If empty, these fields are omitted from results.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setMetadataFields
Optional. The DataObject metadata fields to include in the output:
create_time, update_time and etag. Use "*" to include all metadata
fields. If empty, these fields are omitted from results.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|