Skip to content

datasets.NewDatapointDescriptor

go
func NewDatapointDescriptor(dataset *datasets.Dataset) (*datasets.DatapointDescriptor, error)

Create a reusable descriptor for decoding raw protobuf datapoints from a loaded dataset.

Use this helper when you want to query datasets without generated Go protobuf types.

Parameters

dataset *datasets.Dataset required

A dataset returned by client.Datasets.Get or another dataset client method.

Returns

A DatapointDescriptor that can be passed to UnmarshalDatapoint or DatapointDecoder.Unmarshal.

Type to search…