Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2KnowledgeOperationMetadata

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

Overview

Metadata in google::longrunning::Operation for Knowledge operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2KnowledgeOperationMetadata

Returns a new instance of GoogleCloudDialogflowV2KnowledgeOperationMetadata.



10839
10840
10841
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 10839

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

Instance Attribute Details

#knowledge_baseString

The name of the knowledge base interacted with during the operation. Corresponds to the JSON property knowledgeBase

Returns:

  • (String)


10832
10833
10834
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 10832

def knowledge_base
  @knowledge_base
end

#stateString

Output only. The current state of this operation. Corresponds to the JSON property state

Returns:

  • (String)


10837
10838
10839
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 10837

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10844
10845
10846
10847
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 10844

def update!(**args)
  @knowledge_base = args[:knowledge_base] if args.key?(:knowledge_base)
  @state = args[:state] if args.key?(:state)
end