Skip to content

datasets.NewDatapointDescriptor

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.

dataset *datasets.Dataset required

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

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