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.



22607
22608
22609
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22607

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

Instance Attribute Details

#doneBoolean Also known as: done?

Corresponds to the JSON property done

Returns:

  • (Boolean)


22584
22585
22586
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22584

def done
  @done
end

#errorGoogle::Apis::DialogflowV2::GoogleRpcStatus

Corresponds to the JSON property error



22590
22591
22592
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22590

def error
  @error
end

#metadataHash<String,Object>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


22595
22596
22597
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22595

def 
  @metadata
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


22600
22601
22602
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22600

def name
  @name
end

#responseHash<String,Object>

Corresponds to the JSON property response

Returns:

  • (Hash<String,Object>)


22605
22606
22607
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22605

def response
  @response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22612
22613
22614
22615
22616
22617
22618
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22612

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