Class: Google::Cloud::DiscoveryEngine::V1::RecommendResponse

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/discoveryengine/v1/recommendation_service.rb

Overview

Response message for Recommend method.

Defined Under Namespace

Classes: RecommendationResult

Instance Attribute Summary collapse

Instance Attribute Details

#attribution_token::String



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# File 'proto_docs/google/cloud/discoveryengine/v1/recommendation_service.rb', line 191

class RecommendResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # RecommendationResult represents a generic recommendation result with
  # associated metadata.
  # @!attribute [rw] id
  #   @return [::String]
  #     Resource ID of the recommended Document.
  # @!attribute [rw] document
  #   @return [::Google::Cloud::DiscoveryEngine::V1::Document]
  #     Set if `returnDocument` is set to true in
  #     {::Google::Cloud::DiscoveryEngine::V1::RecommendRequest#params RecommendRequest.params}.
  # @!attribute [rw] metadata
  #   @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
  #     Additional Document metadata or annotations.
  #
  #     Possible values:
  #
  #     * `score`: Recommendation score in double value. Is set if
  #       `returnScore` is set to true in
  #       {::Google::Cloud::DiscoveryEngine::V1::RecommendRequest#params RecommendRequest.params}.
  class RecommendationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # @!attribute [rw] key
    #   @return [::String]
    # @!attribute [rw] value
    #   @return [::Google::Protobuf::Value]
    class MetadataEntry
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end
end

#missing_ids::Array<::String>



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# File 'proto_docs/google/cloud/discoveryengine/v1/recommendation_service.rb', line 191

class RecommendResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # RecommendationResult represents a generic recommendation result with
  # associated metadata.
  # @!attribute [rw] id
  #   @return [::String]
  #     Resource ID of the recommended Document.
  # @!attribute [rw] document
  #   @return [::Google::Cloud::DiscoveryEngine::V1::Document]
  #     Set if `returnDocument` is set to true in
  #     {::Google::Cloud::DiscoveryEngine::V1::RecommendRequest#params RecommendRequest.params}.
  # @!attribute [rw] metadata
  #   @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
  #     Additional Document metadata or annotations.
  #
  #     Possible values:
  #
  #     * `score`: Recommendation score in double value. Is set if
  #       `returnScore` is set to true in
  #       {::Google::Cloud::DiscoveryEngine::V1::RecommendRequest#params RecommendRequest.params}.
  class RecommendationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # @!attribute [rw] key
    #   @return [::String]
    # @!attribute [rw] value
    #   @return [::Google::Protobuf::Value]
    class MetadataEntry
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end
end

#results::Array<::Google::Cloud::DiscoveryEngine::V1::RecommendResponse::RecommendationResult>



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# File 'proto_docs/google/cloud/discoveryengine/v1/recommendation_service.rb', line 191

class RecommendResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # RecommendationResult represents a generic recommendation result with
  # associated metadata.
  # @!attribute [rw] id
  #   @return [::String]
  #     Resource ID of the recommended Document.
  # @!attribute [rw] document
  #   @return [::Google::Cloud::DiscoveryEngine::V1::Document]
  #     Set if `returnDocument` is set to true in
  #     {::Google::Cloud::DiscoveryEngine::V1::RecommendRequest#params RecommendRequest.params}.
  # @!attribute [rw] metadata
  #   @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
  #     Additional Document metadata or annotations.
  #
  #     Possible values:
  #
  #     * `score`: Recommendation score in double value. Is set if
  #       `returnScore` is set to true in
  #       {::Google::Cloud::DiscoveryEngine::V1::RecommendRequest#params RecommendRequest.params}.
  class RecommendationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # @!attribute [rw] key
    #   @return [::String]
    # @!attribute [rw] value
    #   @return [::Google::Protobuf::Value]
    class MetadataEntry
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end
end

#validate_only::Boolean



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# File 'proto_docs/google/cloud/discoveryengine/v1/recommendation_service.rb', line 191

class RecommendResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # RecommendationResult represents a generic recommendation result with
  # associated metadata.
  # @!attribute [rw] id
  #   @return [::String]
  #     Resource ID of the recommended Document.
  # @!attribute [rw] document
  #   @return [::Google::Cloud::DiscoveryEngine::V1::Document]
  #     Set if `returnDocument` is set to true in
  #     {::Google::Cloud::DiscoveryEngine::V1::RecommendRequest#params RecommendRequest.params}.
  # @!attribute [rw] metadata
  #   @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
  #     Additional Document metadata or annotations.
  #
  #     Possible values:
  #
  #     * `score`: Recommendation score in double value. Is set if
  #       `returnScore` is set to true in
  #       {::Google::Cloud::DiscoveryEngine::V1::RecommendRequest#params RecommendRequest.params}.
  class RecommendationResult
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # @!attribute [rw] key
    #   @return [::String]
    # @!attribute [rw] value
    #   @return [::Google::Protobuf::Value]
    class MetadataEntry
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end
end