Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfoQueryGenerationDebugInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfoQueryGenerationDebugInfo

Returns a new instance of GoogleCloudDialogflowV2beta1KnowledgeAssistDebugInfoQueryGenerationDebugInfo.



17759
17760
17761
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17759

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

Instance Attribute Details

#candidates_token_countFixnum

Corresponds to the JSON property candidatesTokenCount

Returns:

  • (Fixnum)


17747
17748
17749
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17747

def candidates_token_count
  @candidates_token_count
end

#prompt_token_countFixnum

Corresponds to the JSON property promptTokenCount

Returns:

  • (Fixnum)


17752
17753
17754
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17752

def prompt_token_count
  @prompt_token_count
end

#total_token_countFixnum

Corresponds to the JSON property totalTokenCount

Returns:

  • (Fixnum)


17757
17758
17759
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17757

def total_token_count
  @total_token_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17764
17765
17766
17767
17768
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17764

def update!(**args)
  @candidates_token_count = args[:candidates_token_count] if args.key?(:candidates_token_count)
  @prompt_token_count = args[:prompt_token_count] if args.key?(:prompt_token_count)
  @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
end