Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2KnowledgeAssistDebugInfoQueryGenerationDebugInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2KnowledgeAssistDebugInfoQueryGenerationDebugInfo

Returns a new instance of GoogleCloudDialogflowV2KnowledgeAssistDebugInfoQueryGenerationDebugInfo.



16082
16083
16084
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16082

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

Instance Attribute Details

#candidates_token_countFixnum

Corresponds to the JSON property candidatesTokenCount

Returns:

  • (Fixnum)


16070
16071
16072
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16070

def candidates_token_count
  @candidates_token_count
end

#prompt_token_countFixnum

Corresponds to the JSON property promptTokenCount

Returns:

  • (Fixnum)


16075
16076
16077
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16075

def prompt_token_count
  @prompt_token_count
end

#total_token_countFixnum

Corresponds to the JSON property totalTokenCount

Returns:

  • (Fixnum)


16080
16081
16082
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16080

def total_token_count
  @total_token_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16087
16088
16089
16090
16091
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16087

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