lib/google/apis/cloudsearch_v1/classes.rb in google-apis-cloudsearch_v1-0.59.0 vs lib/google/apis/cloudsearch_v1/classes.rb in google-apis-cloudsearch_v1-0.61.0
- old
+ new
@@ -853,10 +853,43 @@
def update!(**args)
@enable_debugging = args[:enable_debugging] if args.key?(:enable_debugging)
end
end
+ # Debug Search Response.
+ class DebugResponse
+ include Google::Apis::Core::Hashable
+
+ # Serialized string of GenericSearchRequest.
+ # Corresponds to the JSON property `gsrRequest`
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
+ # @return [String]
+ attr_accessor :gsr_request
+
+ # Serialized string of GenericSearchResponse.
+ # Corresponds to the JSON property `gsrResponse`
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
+ # @return [String]
+ attr_accessor :gsr_response
+
+ # The search API response.
+ # Corresponds to the JSON property `searchResponse`
+ # @return [Google::Apis::CloudsearchV1::SearchResponse]
+ attr_accessor :search_response
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @gsr_request = args[:gsr_request] if args.key?(:gsr_request)
+ @gsr_response = args[:gsr_response] if args.key?(:gsr_response)
+ @search_response = args[:search_response] if args.key?(:search_response)
+ end
+ end
+
#
class DeleteQueueItemsRequest
include Google::Apis::Core::Hashable
# The name of connector making this call. Format: datasources/`source_id`/
@@ -6648,9 +6681,67 @@
end
# Update properties of this object
def update!(**args)
@importance = args[:importance] if args.key?(:importance)
+ end
+ end
+
+ # The rewritten queries returned by Apps Search Query Understanding service.
+ class RewrittenQueries
+ include Google::Apis::Core::Hashable
+
+ #
+ # Corresponds to the JSON property `rewrittenQueries`
+ # @return [Array<Google::Apis::CloudsearchV1::RewrittenQuery>]
+ attr_accessor :rewritten_queries
+
+ # The index of the selected query in `rewritten_queries` that is used by QAPI to
+ # call CSSR to get search results. If none of the queries were used (i.e. they
+ # all give empty search results), `selected_query_index` would default to -1.
+ # Corresponds to the JSON property `selectedQueryIndex`
+ # @return [Fixnum]
+ attr_accessor :selected_query_index
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @rewritten_queries = args[:rewritten_queries] if args.key?(:rewritten_queries)
+ @selected_query_index = args[:selected_query_index] if args.key?(:selected_query_index)
+ end
+ end
+
+ #
+ class RewrittenQuery
+ include Google::Apis::Core::Hashable
+
+ #
+ # Corresponds to the JSON property `rewrittenQuery`
+ # @return [String]
+ attr_accessor :rewritten_query
+
+ #
+ # Corresponds to the JSON property `score`
+ # @return [Float]
+ attr_accessor :score
+
+ #
+ # Corresponds to the JSON property `sortBy`
+ # @return [String]
+ attr_accessor :sort_by
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @rewritten_query = args[:rewritten_query] if args.key?(:rewritten_query)
+ @score = args[:score] if args.key?(:score)
+ @sort_by = args[:sort_by] if args.key?(:sort_by)
end
end
# IMPORTANT: It is unsafe to accept this message from an untrusted source, since
# it's trivial for an attacker to forge serialized messages that don't fulfill