Class: Google::Apis::CloudsearchV1::UploadMetadata
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::UploadMetadata
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Annotation metadata for user Upload artifacts.
Instance Attribute Summary collapse
-
#attachment_token ⇒ String
Opaque token.
-
#backend_upload_metadata ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedBackendUploadMetadata
Metadata used only in Dynamite backend for uploaded attachments.
-
#cloned_authorized_item_id ⇒ Google::Apis::CloudsearchV1::AuthorizedItemId
A combination of an identifier for a Drive resource (e.g. file, folder, or drive) and any secrets needed to access it.
-
#cloned_drive_action ⇒ String
DriveAction for organizing the cloned version of this upload in Drive, if the file has been added to Drive.
-
#cloned_drive_id ⇒ String
Reference to a Drive ID, if this upload file has been previously cloned to Drive.
-
#content_name ⇒ String
The original file name for the content, not the full path.
-
#content_type ⇒ String
Type is from Scotty's best_guess by default: http://google3/uploader/agent/ scotty_agent.proto?l=51&rcl=140889785 Corresponds to the JSON property
contentType
. -
#dlp_metrics_metadata ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedDlpMetricsMetadata
LINT.IfChange Corresponds to the JSON property
dlpMetricsMetadata
. -
#internal_only_component_search_info ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedMessageComponentSearchInfo
Metadata used to describe search information in a specific component of a chat message, for example an annotation or an attachment.
-
#latest_virus_scan_timestamp ⇒ Fixnum
The timestamp of the most recent virus scan completed (in microseconds).
-
#local_id ⇒ String
A copy of the LocalId in Annotation.
-
#original_dimension ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedDimension
Dimension for the uploaded attachments.
-
#video_reference ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedVideoReference
Reference to a transcoded video attachment.
-
#virus_scan_result ⇒ String
Result for a virus scan.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UploadMetadata
constructor
A new instance of UploadMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UploadMetadata
Returns a new instance of UploadMetadata.
21355 21356 21357 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21355 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attachment_token ⇒ String
Opaque token. Clients shall simply pass it back to the Backend. There is no
guarantee the attachment_token returned on subsequent reads is the same even
if nothing has changed. This field will NOT be saved into storage.
Corresponds to the JSON property attachmentToken
21276 21277 21278 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21276 def @attachment_token end |
#backend_upload_metadata ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedBackendUploadMetadata
Metadata used only in Dynamite backend for uploaded attachments. NEXT ID: 20
Corresponds to the JSON property backendUploadMetadata
21281 21282 21283 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21281 def @backend_upload_metadata end |
#cloned_authorized_item_id ⇒ Google::Apis::CloudsearchV1::AuthorizedItemId
A combination of an identifier for a Drive resource (e.g. file, folder, or
drive) and any secrets needed to access it. The secrets should never be logged,
and this proto annotates those secret fields to ensure that they are not.
Clients are encouraged to use this proto rather than defining their own, to
ensure that secrets are correctly annotated.
Corresponds to the JSON property clonedAuthorizedItemId
21290 21291 21292 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21290 def @cloned_authorized_item_id end |
#cloned_drive_action ⇒ String
DriveAction for organizing the cloned version of this upload in Drive, if the
file has been added to Drive. This field is not set if the file has not been
added to Drive. Additionally, this field is only set when part of a FileResult
in a ListFilesResponse.
Corresponds to the JSON property clonedDriveAction
21298 21299 21300 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21298 def cloned_drive_action @cloned_drive_action end |
#cloned_drive_id ⇒ String
Reference to a Drive ID, if this upload file has been previously cloned to
Drive. Note: this is deprecated in favor of the AuthorizedItemId below.
Corresponds to the JSON property clonedDriveId
21304 21305 21306 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21304 def cloned_drive_id @cloned_drive_id end |
#content_name ⇒ String
The original file name for the content, not the full path.
Corresponds to the JSON property contentName
21309 21310 21311 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21309 def content_name @content_name end |
#content_type ⇒ String
Type is from Scotty's best_guess by default: http://google3/uploader/agent/
scotty_agent.proto?l=51&rcl=140889785
Corresponds to the JSON property contentType
21315 21316 21317 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21315 def content_type @content_type end |
#dlp_metrics_metadata ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedDlpMetricsMetadata
LINT.IfChange
Corresponds to the JSON property dlpMetricsMetadata
21320 21321 21322 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21320 def @dlp_metrics_metadata end |
#internal_only_component_search_info ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedMessageComponentSearchInfo
Metadata used to describe search information in a specific component of a chat
message, for example an annotation or an attachment.
Corresponds to the JSON property internalOnlyComponentSearchInfo
21326 21327 21328 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21326 def internal_only_component_search_info @internal_only_component_search_info end |
#latest_virus_scan_timestamp ⇒ Fixnum
The timestamp of the most recent virus scan completed (in microseconds).
Corresponds to the JSON property latestVirusScanTimestamp
21331 21332 21333 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21331 def @latest_virus_scan_timestamp end |
#local_id ⇒ String
A copy of the LocalId in Annotation. This field is supposed to be filled by
server only.
Corresponds to the JSON property localId
21337 21338 21339 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21337 def local_id @local_id end |
#original_dimension ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedDimension
Dimension for the uploaded attachments.
Corresponds to the JSON property originalDimension
21342 21343 21344 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21342 def original_dimension @original_dimension end |
#video_reference ⇒ Google::Apis::CloudsearchV1::AppsDynamiteSharedVideoReference
Reference to a transcoded video attachment.
Corresponds to the JSON property videoReference
21347 21348 21349 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21347 def video_reference @video_reference end |
#virus_scan_result ⇒ String
Result for a virus scan. It's duplicated in the above field apps.dynamite.
shared.BackendUploadMetadata
Corresponds to the JSON property virusScanResult
21353 21354 21355 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21353 def virus_scan_result @virus_scan_result end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21360 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370 21371 21372 21373 21374 21375 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 21360 def update!(**args) @attachment_token = args[:attachment_token] if args.key?(:attachment_token) @backend_upload_metadata = args[:backend_upload_metadata] if args.key?(:backend_upload_metadata) @cloned_authorized_item_id = args[:cloned_authorized_item_id] if args.key?(:cloned_authorized_item_id) @cloned_drive_action = args[:cloned_drive_action] if args.key?(:cloned_drive_action) @cloned_drive_id = args[:cloned_drive_id] if args.key?(:cloned_drive_id) @content_name = args[:content_name] if args.key?(:content_name) @content_type = args[:content_type] if args.key?(:content_type) @dlp_metrics_metadata = args[:dlp_metrics_metadata] if args.key?(:dlp_metrics_metadata) @internal_only_component_search_info = args[:internal_only_component_search_info] if args.key?(:internal_only_component_search_info) @latest_virus_scan_timestamp = args[:latest_virus_scan_timestamp] if args.key?(:latest_virus_scan_timestamp) @local_id = args[:local_id] if args.key?(:local_id) @original_dimension = args[:original_dimension] if args.key?(:original_dimension) @video_reference = args[:video_reference] if args.key?(:video_reference) @virus_scan_result = args[:virus_scan_result] if args.key?(:virus_scan_result) end |