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.



22367
22368
22369
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22367

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

Instance Attribute Details

#doneBoolean Also known as: done?

Corresponds to the JSON property done

Returns:

  • (Boolean)


22344
22345
22346
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22344

def done
  @done
end

#errorGoogle::Apis::DialogflowV2::GoogleRpcStatus

Corresponds to the JSON property error



22350
22351
22352
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22350

def error
  @error
end

#metadataHash<String,Object>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


22355
22356
22357
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22355

def 
  @metadata
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


22360
22361
22362
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22360

def name
  @name
end

#responseHash<String,Object>

Corresponds to the JSON property response

Returns:

  • (Hash<String,Object>)


22365
22366
22367
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22365

def response
  @response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22372
22373
22374
22375
22376
22377
22378
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22372

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