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.



22881
22882
22883
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22881

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

Instance Attribute Details

#doneBoolean Also known as: done?

Corresponds to the JSON property done

Returns:

  • (Boolean)


22858
22859
22860
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22858

def done
  @done
end

#errorGoogle::Apis::DialogflowV2::GoogleRpcStatus

Corresponds to the JSON property error



22864
22865
22866
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22864

def error
  @error
end

#metadataHash<String,Object>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


22869
22870
22871
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22869

def 
  @metadata
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


22874
22875
22876
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22874

def name
  @name
end

#responseHash<String,Object>

Corresponds to the JSON property response

Returns:

  • (Hash<String,Object>)


22879
22880
22881
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22879

def response
  @response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22886
22887
22888
22889
22890
22891
22892
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22886

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