Class: Google::Apis::FitnessV1::Dataset
- Inherits:
-
Object
- Object
- Google::Apis::FitnessV1::Dataset
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/fitness_v1/classes.rb,
generated/google/apis/fitness_v1/representations.rb,
generated/google/apis/fitness_v1/representations.rb
Overview
A dataset represents a projection container for data points. They do not carry any info of their own. Datasets represent a set of data points from a particular data source. A data point can be found in more than one dataset.
Instance Attribute Summary collapse
-
#data_source_id ⇒ String
The data stream ID of the data source that created the points in this dataset.
-
#max_end_time_ns ⇒ Fixnum
The largest end time of all data points in this possibly partial representation of the dataset.
-
#min_start_time_ns ⇒ Fixnum
The smallest start time of all data points in this possibly partial representation of the dataset.
-
#next_page_token ⇒ String
This token will be set when a dataset is received in response to a GET request and the dataset is too large to be included in a single response.
-
#point ⇒ Array<Google::Apis::FitnessV1::DataPoint>
A partial list of data points contained in the dataset, ordered by largest endTimeNanos first.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Dataset
constructor
A new instance of Dataset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Dataset
Returns a new instance of Dataset
649 650 651 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 649 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_source_id ⇒ String
The data stream ID of the data source that created the points in this dataset.
Corresponds to the JSON property dataSourceId
617 618 619 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 617 def data_source_id @data_source_id end |
#max_end_time_ns ⇒ Fixnum
The largest end time of all data points in this possibly partial
representation of the dataset. Time is in nanoseconds from epoch. This should
also match the first part of the dataset identifier.
Corresponds to the JSON property maxEndTimeNs
624 625 626 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 624 def max_end_time_ns @max_end_time_ns end |
#min_start_time_ns ⇒ Fixnum
The smallest start time of all data points in this possibly partial
representation of the dataset. Time is in nanoseconds from epoch. This should
also match the first part of the dataset identifier.
Corresponds to the JSON property minStartTimeNs
631 632 633 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 631 def min_start_time_ns @min_start_time_ns end |
#next_page_token ⇒ String
This token will be set when a dataset is received in response to a GET request
and the dataset is too large to be included in a single response. Provide this
value in a subsequent GET request to return the next page of data points
within this dataset.
Corresponds to the JSON property nextPageToken
639 640 641 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 639 def next_page_token @next_page_token end |
#point ⇒ Array<Google::Apis::FitnessV1::DataPoint>
A partial list of data points contained in the dataset, ordered by largest
endTimeNanos first. This list is considered complete when retrieving a small
dataset and partial when patching a dataset or retrieving a dataset that is
too large to include in a single response.
Corresponds to the JSON property point
647 648 649 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 647 def point @point end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
654 655 656 657 658 659 660 |
# File 'generated/google/apis/fitness_v1/classes.rb', line 654 def update!(**args) @data_source_id = args[:data_source_id] if args.key?(:data_source_id) @max_end_time_ns = args[:max_end_time_ns] if args.key?(:max_end_time_ns) @min_start_time_ns = args[:min_start_time_ns] if args.key?(:min_start_time_ns) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @point = args[:point] if args.key?(:point) end |