lib/google/apis/cloudsearch_v1/classes.rb in google-apis-cloudsearch_v1-0.53.0 vs lib/google/apis/cloudsearch_v1/classes.rb in google-apis-cloudsearch_v1-0.54.0

- old
+ new

@@ -20,41 +20,10 @@ module Google module Apis module CloudsearchV1 - # Next tag: 4 - class AclInfo - include Google::Apis::Core::Hashable - - # Number of groups which have at least read access to the document. - # Corresponds to the JSON property `groupsCount` - # @return [Fixnum] - attr_accessor :groups_count - - # The scope to which the content was shared. - # Corresponds to the JSON property `scope` - # @return [String] - attr_accessor :scope - - # Number of users which have at least read access to the document. - # Corresponds to the JSON property `usersCount` - # @return [Fixnum] - attr_accessor :users_count - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @groups_count = args[:groups_count] if args.key?(:groups_count) - @scope = args[:scope] if args.key?(:scope) - @users_count = args[:users_count] if args.key?(:users_count) - end - end - # class Action include Google::Apis::Core::Hashable # [Required] Title of the action. @@ -3779,135 +3748,10 @@ def update!(**args) @stats = args[:stats] if args.key?(:stats) end end - # The corpus specific metadata for office-type documents, from Google Docs and - # other sources. This message is passed to the scorer and beyond. Next tag: 9 - class GoogleDocsMetadata - include Google::Apis::Core::Hashable - - # Next tag: 4 - # Corresponds to the JSON property `aclInfo` - # @return [Google::Apis::CloudsearchV1::AclInfo] - attr_accessor :acl_info - - # The conceptual type (presentation, document, etc.) of this document. - # Corresponds to the JSON property `documentType` - # @return [String] - attr_accessor :document_type - - # The file extension of the document. NOTE: As of October 2018 this field is not - # backfilled for old documents. - # Corresponds to the JSON property `fileExtension` - # @return [String] - attr_accessor :file_extension - - # The last time this document was modified, in seconds since epoch. Only counts - # content modifications. - # Corresponds to the JSON property `lastContentModifiedTimestamp` - # @return [Fixnum] - attr_accessor :last_content_modified_timestamp - - # Contains number of subscribers for the document. - # Corresponds to the JSON property `numSubscribers` - # @return [Fixnum] - attr_accessor :num_subscribers - - # Size of untruncated viewers list. - # Corresponds to the JSON property `numViewers` - # @return [Fixnum] - attr_accessor :num_viewers - - # A message containing information about a specific result. This information is - # passed to the scorer and beyond; in particular, GWS relies on it to format the - # result in the UI. Split from GoogleDocsMetadata in case we later want to reuse - # the message. - # Corresponds to the JSON property `resultInfo` - # @return [Google::Apis::CloudsearchV1::GoogleDocsResultInfo] - attr_accessor :result_info - - # Next tag: 2 - # Corresponds to the JSON property `typeInfo` - # @return [Google::Apis::CloudsearchV1::TypeInfo] - attr_accessor :type_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @acl_info = args[:acl_info] if args.key?(:acl_info) - @document_type = args[:document_type] if args.key?(:document_type) - @file_extension = args[:file_extension] if args.key?(:file_extension) - @last_content_modified_timestamp = args[:last_content_modified_timestamp] if args.key?(:last_content_modified_timestamp) - @num_subscribers = args[:num_subscribers] if args.key?(:num_subscribers) - @num_viewers = args[:num_viewers] if args.key?(:num_viewers) - @result_info = args[:result_info] if args.key?(:result_info) - @type_info = args[:type_info] if args.key?(:type_info) - end - end - - # A message containing information about a specific result. This information is - # passed to the scorer and beyond; in particular, GWS relies on it to format the - # result in the UI. Split from GoogleDocsMetadata in case we later want to reuse - # the message. - class GoogleDocsResultInfo - include Google::Apis::Core::Hashable - - # The SHA1 hash of the object in Drive, if any. - # Corresponds to the JSON property `attachmentSha1` - # @return [String] - attr_accessor :attachment_sha1 - - # Identifies a particular object, including both Users and DirEntries. This Id - # is unique across the entire server instance, such as the production or qa - # instance. - # Corresponds to the JSON property `cosmoId` - # @return [Google::Apis::CloudsearchV1::Id] - attr_accessor :cosmo_id - - # For Cosmo objects, the Cosmo namespace the object was in. This allows - # downstream clients to identify whether a document was created in Writely or - # Kix, Presently or Punch, or whether it was uploaded from GDrive. See - # storage_cosmo.Id.NAME_SPACE for a list of all Cosmo name spaces. - # Corresponds to the JSON property `cosmoNameSpace` - # @return [Fixnum] - attr_accessor :cosmo_name_space - - # The encrypted (user-visible) id of this object. Knowing the id is sufficient - # to create a canonical URL for this document. - # Corresponds to the JSON property `encryptedId` - # @return [String] - attr_accessor :encrypted_id - - # The mimetype of the document. - # Corresponds to the JSON property `mimeType` - # @return [String] - attr_accessor :mime_type - - # The visibility indicator in the UI will be based upon this. - # Corresponds to the JSON property `shareScope` - # @return [Google::Apis::CloudsearchV1::ShareScope] - attr_accessor :share_scope - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @attachment_sha1 = args[:attachment_sha1] if args.key?(:attachment_sha1) - @cosmo_id = args[:cosmo_id] if args.key?(:cosmo_id) - @cosmo_name_space = args[:cosmo_name_space] if args.key?(:cosmo_name_space) - @encrypted_id = args[:encrypted_id] if args.key?(:encrypted_id) - @mime_type = args[:mime_type] if args.key?(:mime_type) - @share_scope = args[:share_scope] if args.key?(:share_scope) - end - end - # Used to provide a search operator for html properties. This is optional. # Search operators let users restrict the query to specific fields relevant to # the type of item being searched. class HtmlOperatorOptions include Google::Apis::Core::Hashable @@ -3979,57 +3823,10 @@ def update!(**args) @values = args[:values] if args.key?(:values) end end - # Identifies a particular object, including both Users and DirEntries. This Id - # is unique across the entire server instance, such as the production or qa - # instance. - class Id - include Google::Apis::Core::Hashable - - # The User account in which the DirEntry was originally created. If name_space== - # GAIA, then it's the gaia_id of the user this id is referring to. This field - # should really be called the "bucket ID", not the creator ID. In some - # circumstances, such as copying a Google Docs file, a user can create an item - # in a different user's bucket, so it should not be relied upon for anything - # other than bucket location. To look up the requesting user who initially - # created item, use the `creator_id` DirEntry field instead. - # Corresponds to the JSON property `creatorUserId` - # @return [Fixnum] - attr_accessor :creator_user_id - - # The local identifier for the DirEntry (local to the creator's account). - # local_id + app_name is guaranteed to be unique within the creator account, but - # not across all User accounts. The string is case sensitive. Ignore if - # name_space==GAIA. NB For name_space==COSMO, all local_id's should be defined - # in google3/java/com/google/storage/cosmo/server/api/SpecialObjectIds.java as - # they have a special predefined meaning. See cosmo.client.CosmoIdFactory. - # createObjectId(long,String) for IMPORTANT recommendations when generating IDs. - # Corresponds to the JSON property `localId` - # @return [String] - attr_accessor :local_id - - # The name space in which this id is unique (typically the application that - # created it). Values should be drawn from the above enum, but for - # experimentation, use values greater than 1000. - # Corresponds to the JSON property `nameSpace` - # @return [Fixnum] - attr_accessor :name_space - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @creator_user_id = args[:creator_user_id] if args.key?(:creator_user_id) - @local_id = args[:local_id] if args.key?(:local_id) - @name_space = args[:name_space] if args.key?(:name_space) - end - end - # class IndexItemOptions include Google::Apis::Core::Hashable # Specifies if the index request should allow Google Workspace principals that @@ -6603,13 +6400,12 @@ # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For # translations. Set this field using the language set in browser or for the page. # In the event that the user's language preference is known, set this field to # the known user language. When specified, the documents in search results are - # biased towards the specified language. From Suggest API perspective, for 3p - # suggest this is used as a hint while making predictions to add language - # boosting. + # biased towards the specified language. The Suggest API uses this field as a + # hint to make better third-party autocomplete predictions. # Corresponds to the JSON property `languageCode` # @return [String] attr_accessor :language_code # The ID generated when you create a search application using the [admin console] @@ -7434,36 +7230,10 @@ @title = args[:title] if args.key?(:title) @url = args[:url] if args.key?(:url) end end - # - class ShareScope - include Google::Apis::Core::Hashable - - # If scope is DOMAIN, this field contains the dasher domain, for example "google. - # com". - # Corresponds to the JSON property `domain` - # @return [String] - attr_accessor :domain - - # The scope to which the content was shared. - # Corresponds to the JSON property `scope` - # @return [String] - attr_accessor :scope - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @domain = args[:domain] if args.key?(:domain) - @scope = args[:scope] if args.key?(:scope) - end - end - # Snippet of the search result, which summarizes the content of the resulting # page. class Snippet include Google::Apis::Core::Hashable @@ -8126,29 +7896,10 @@ def update!(**args) @values = args[:values] if args.key?(:values) end end - # Next tag: 2 - class TypeInfo - include Google::Apis::Core::Hashable - - # Next tag: 2 - # Corresponds to the JSON property `videoInfo` - # @return [Google::Apis::CloudsearchV1::VideoInfo] - attr_accessor :video_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @video_info = args[:video_info] if args.key?(:video_info) - end - end - # class UnmappedIdentity include Google::Apis::Core::Hashable # Reference to a user, group, or domain. @@ -8420,29 +8171,9 @@ # Update properties of this object def update!(**args) @operator_name = args[:operator_name] if args.key?(:operator_name) @value = args[:value] if args.key?(:value) - end - end - - # Next tag: 2 - class VideoInfo - include Google::Apis::Core::Hashable - - # Duration of the video in milliseconds. This field can be absent for recently - # uploaded video or inaccurate sometimes. - # Corresponds to the JSON property `duration` - # @return [Fixnum] - attr_accessor :duration - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @duration = args[:duration] if args.key?(:duration) end end end end end