Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistDebugInfoQueryGenerationDebugInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2KnowledgeAssistDebugInfoQueryGenerationDebugInfo

Returns a new instance of GoogleCloudDialogflowV2KnowledgeAssistDebugInfoQueryGenerationDebugInfo.



13580
13581
13582
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13580

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

Instance Attribute Details

#candidates_token_countFixnum

Corresponds to the JSON property candidatesTokenCount

Returns:

  • (Fixnum)


13568
13569
13570
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13568

def candidates_token_count
  @candidates_token_count
end

#prompt_token_countFixnum

Corresponds to the JSON property promptTokenCount

Returns:

  • (Fixnum)


13573
13574
13575
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13573

def prompt_token_count
  @prompt_token_count
end

#total_token_countFixnum

Corresponds to the JSON property totalTokenCount

Returns:

  • (Fixnum)


13578
13579
13580
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13578

def total_token_count
  @total_token_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13585
13586
13587
13588
13589
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13585

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