Class: Google::Apis::DialogflowV3::GoogleLongrunningOperation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleLongrunningOperation

Returns a new instance of GoogleLongrunningOperation.



21939
21940
21941
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 21939

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

Instance Attribute Details

#doneBoolean Also known as: done?

Corresponds to the JSON property done

Returns:

  • (Boolean)


21916
21917
21918
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 21916

def done
  @done
end

#errorGoogle::Apis::DialogflowV3::GoogleRpcStatus

Corresponds to the JSON property error



21922
21923
21924
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 21922

def error
  @error
end

#metadataHash<String,Object>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


21927
21928
21929
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 21927

def 
  @metadata
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


21932
21933
21934
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 21932

def name
  @name
end

#responseHash<String,Object>

Corresponds to the JSON property response

Returns:

  • (Hash<String,Object>)


21937
21938
21939
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 21937

def response
  @response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21944
21945
21946
21947
21948
21949
21950
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 21944

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