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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/ml_v1/classes.rb,
generated/google/apis/ml_v1/representations.rb,
generated/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.



2546
2547
2548
# File 'generated/google/apis/ml_v1/classes.rb', line 2546

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)


2539
2540
2541
# File 'generated/google/apis/ml_v1/classes.rb', line 2539

def client_id
  @client_id
end

#suggestion_countFixnum

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

Returns:

  • (Fixnum)


2544
2545
2546
# File 'generated/google/apis/ml_v1/classes.rb', line 2544

def suggestion_count
  @suggestion_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2551
2552
2553
2554
# File 'generated/google/apis/ml_v1/classes.rb', line 2551

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