class Google::Apis::SpannerV1::ContextValue
A message representing context for a KeyRangeInfo
, including a label, value, unit, and severity.
Attributes
label[RW]
A message representing a user-facing string whose value may need to be translated before being displayed. Corresponds to the JSON property `label` @return [Google::Apis::SpannerV1::LocalizedString]
severity[RW]
The severity of this context. Corresponds to the JSON property `severity` @return [String]
unit[RW]
The unit of the context value. Corresponds to the JSON property `unit` @return [String]
value[RW]
The value for the context. Corresponds to the JSON property `value` @return [Float]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 775 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/spanner_v1/classes.rb, line 780 def update!(**args) @label = args[:label] if args.key?(:label) @severity = args[:severity] if args.key?(:severity) @unit = args[:unit] if args.key?(:unit) @value = args[:value] if args.key?(:value) end