Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1NamedMetric

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1NamedMetric

Returns a new instance of GoogleCloudDialogflowCxV3beta1NamedMetric.



9877
9878
9879
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9877

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


9865
9866
9867
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9865

def name
  @name
end

#unitString

Corresponds to the JSON property unit

Returns:

  • (String)


9870
9871
9872
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9870

def unit
  @unit
end

#valueObject

Corresponds to the JSON property value

Returns:

  • (Object)


9875
9876
9877
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9875

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9882
9883
9884
9885
9886
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9882

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @unit = args[:unit] if args.key?(:unit)
  @value = args[:value] if args.key?(:value)
end