Google Cloud Vector Search V1 Client - Class OutputFields (0.11.0)

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 \ V1

Methods

__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 "*" to include all data fields. If empty, data is omitted from results.

↳ vector_fields string[]

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.

↳ metadata_fields string[]

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.

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