Class: Google::Apis::MlV1::GoogleCloudMlV1SuggestTrialsRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/ml_v1/classes.rb,
lib/google/apis/ml_v1/representations.rb,
lib/google/apis/ml_v1/representations.rb

Overview

The request message for the SuggestTrial service method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1SuggestTrialsRequest

Returns a new instance of GoogleCloudMlV1SuggestTrialsRequest.



2573
2574
2575
# File 'lib/google/apis/ml_v1/classes.rb', line 2573

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

Instance Attribute Details

#client_idString

Required. The identifier of the client that is requesting the suggestion. If multiple SuggestTrialsRequests have the same client_id, the service will return the identical suggested trial if the trial is pending, and provide a new trial if the last suggested trial was completed. Corresponds to the JSON property clientId

Returns:

  • (String)


2566
2567
2568
# File 'lib/google/apis/ml_v1/classes.rb', line 2566

def client_id
  @client_id
end

#suggestion_countFixnum

Required. The number of suggestions requested. Corresponds to the JSON property suggestionCount

Returns:

  • (Fixnum)


2571
2572
2573
# File 'lib/google/apis/ml_v1/classes.rb', line 2571

def suggestion_count
  @suggestion_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2578
2579
2580
2581
# File 'lib/google/apis/ml_v1/classes.rb', line 2578

def update!(**args)
  @client_id = args[:client_id] if args.key?(:client_id)
  @suggestion_count = args[:suggestion_count] if args.key?(:suggestion_count)
end