Retail V2 API - Class Google::Cloud::Retail::V2::PredictResponse (v0.17.0)

Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::PredictResponse.

Response message for predict method.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#attribution_token

def attribution_token() -> ::String
Returns
  • (::String) — A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.

#attribution_token=

def attribution_token=(value) -> ::String
Parameter
  • value (::String) — A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
Returns
  • (::String) — A unique attribution token. This should be included in the UserEvent logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.

#missing_ids

def missing_ids() -> ::Array<::String>
Returns
  • (::Array<::String>) — IDs of products in the request that were missing from the inventory.

#missing_ids=

def missing_ids=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — IDs of products in the request that were missing from the inventory.
Returns
  • (::Array<::String>) — IDs of products in the request that were missing from the inventory.

#results

def results() -> ::Array<::Google::Cloud::Retail::V2::PredictResponse::PredictionResult>
Returns

#results=

def results=(value) -> ::Array<::Google::Cloud::Retail::V2::PredictResponse::PredictionResult>
Parameter
Returns

#validate_only

def validate_only() -> ::Boolean
Returns
  • (::Boolean) — True if the validateOnly property was set in the request.

#validate_only=

def validate_only=(value) -> ::Boolean
Parameter
  • value (::Boolean) — True if the validateOnly property was set in the request.
Returns
  • (::Boolean) — True if the validateOnly property was set in the request.