class Google::Apis::FitnessV1::DataTypeField

In case of multi-dimensional data (such as an accelerometer with x, y, and z axes) each field represents one dimension. Each data type field has a unique name which identifies it. The field also defines the format of the data (int, float, etc.). This message is only instantiated in code and not used for wire comms or stored in any way.

Attributes

format[RW]

The different supported formats for each field in a data type. Corresponds to the JSON property `format` @return [String]

name[RW]

Defines the name and format of data. Unlike data type names, field names are not namespaced, and only need to be unique within the data type. Corresponds to the JSON property `name` @return [String]

optional[RW]

Corresponds to the JSON property `optional` @return [Boolean]

optional?[RW]

Corresponds to the JSON property `optional` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/fitness_v1/classes.rb, line 545
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/fitness_v1/classes.rb, line 550
def update!(**args)
  @format = args[:format] if args.key?(:format)
  @name = args[:name] if args.key?(:name)
  @optional = args[:optional] if args.key?(:optional)
end