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.



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

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

Instance Attribute Details

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


9853
9854
9855
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9853

def name
  @name
end

#unitString

Corresponds to the JSON property unit

Returns:

  • (String)


9858
9859
9860
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9858

def unit
  @unit
end

#valueObject

Corresponds to the JSON property value

Returns:

  • (Object)


9863
9864
9865
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 9863

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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