Class: Google::Apis::DialogflowV2::GoogleLongrunningOperation

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) ⇒ GoogleLongrunningOperation

Returns a new instance of GoogleLongrunningOperation.



22744
22745
22746
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22744

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

Instance Attribute Details

#doneBoolean Also known as: done?

Corresponds to the JSON property done

Returns:

  • (Boolean)


22721
22722
22723
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22721

def done
  @done
end

#errorGoogle::Apis::DialogflowV2::GoogleRpcStatus

Corresponds to the JSON property error



22727
22728
22729
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22727

def error
  @error
end

#metadataHash<String,Object>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


22732
22733
22734
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22732

def 
  @metadata
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


22737
22738
22739
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22737

def name
  @name
end

#responseHash<String,Object>

Corresponds to the JSON property response

Returns:

  • (Hash<String,Object>)


22742
22743
22744
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22742

def response
  @response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22749
22750
22751
22752
22753
22754
22755
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22749

def update!(**args)
  @done = args[:done] if args.key?(:done)
  @error = args[:error] if args.key?(:error)
  @metadata = args[:metadata] if args.key?(:metadata)
  @name = args[:name] if args.key?(:name)
  @response = args[:response] if args.key?(:response)
end