Class: Google::Apis::CloudsearchV1::Annotation

Inherits:
Object
  • Object
show all
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

NOTE WHEN ADDING NEW PROTO FIELDS: Be sure to add datapol annotations to new fields with potential PII, so they get scrubbed when logging protos for errors. NEXT TAG: 31

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Annotation

Returns a new instance of Annotation.



491
492
493
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 491

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#babel_placeholder_metadataGoogle::Apis::CloudsearchV1::BabelPlaceholderMetadata

Annotation metadata for Babel-only items that signals which type of placeholder message should be displayed in Babel clients. Corresponds to the JSON property babelPlaceholderMetadata



314
315
316
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 314

def 
  @babel_placeholder_metadata
end

#card_capability_metadataGoogle::Apis::CloudsearchV1::CardCapabilityMetadata

LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/backend/ action/common/SystemMessageHelper.java) Corresponds to the JSON property cardCapabilityMetadata



320
321
322
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 320

def 
  @card_capability_metadata
end

#chip_render_typeString

Whether the annotation should be rendered as a preview chip. If this is missing or unspecified, fallback to should_not_render on the metadata. Corresponds to the JSON property chipRenderType

Returns:

  • (String)


326
327
328
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 326

def chip_render_type
  @chip_render_type
end

#consented_app_unfurl_metadataGoogle::Apis::CloudsearchV1::ConsentedAppUnfurlMetadata

Annotation metadata app unfurl consent. Corresponds to the JSON property consentedAppUnfurlMetadata



331
332
333
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 331

def 
  @consented_app_unfurl_metadata
end

#custom_emoji_metadataGoogle::Apis::CloudsearchV1::CustomEmojiMetadata

Corresponds to the JSON property customEmojiMetadata



336
337
338
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 336

def 
  @custom_emoji_metadata
end

#data_loss_prevention_metadataGoogle::Apis::CloudsearchV1::DataLossPreventionMetadata

Annotation metadata for Data Loss Prevention that pertains to DLP violation on message send or edit events. It is used for client -> BE communication and other downstream process in BE (e.g. storage and audit logging), and it should never be returned to the client. Corresponds to the JSON property dataLossPreventionMetadata



344
345
346
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 344

def 
  @data_loss_prevention_metadata
end

#drive_metadataGoogle::Apis::CloudsearchV1::DriveMetadata

Annotation metadata for Drive artifacts. Corresponds to the JSON property driveMetadata



349
350
351
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 349

def 
  @drive_metadata
end

#format_metadataGoogle::Apis::CloudsearchV1::FormatMetadata

Annotation metadata for markup formatting Corresponds to the JSON property formatMetadata



354
355
356
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 354

def 
  @format_metadata
end

#group_retention_settings_updatedGoogle::Apis::CloudsearchV1::GroupRetentionSettingsUpdatedMetaData

Corresponds to the JSON property groupRetentionSettingsUpdated



359
360
361
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 359

def group_retention_settings_updated
  @group_retention_settings_updated
end

#gsuite_integration_metadataGoogle::Apis::CloudsearchV1::GsuiteIntegrationMetadata

Annotation metadata for an GsuiteIntegration artifact. Corresponds to the JSON property gsuiteIntegrationMetadata



364
365
366
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 364

def 
  @gsuite_integration_metadata
end

#incoming_webhook_changed_metadataGoogle::Apis::CloudsearchV1::IncomingWebhookChangedMetadata

Annotation metadata to display system messages for incoming webhook events. Next Tag: 7 Corresponds to the JSON property incomingWebhookChangedMetadata



370
371
372
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 370

def 
  @incoming_webhook_changed_metadata
end

#inline_render_formatString

The inline render format of this annotation. go/drive-smart-chips-chat-v2. Corresponds to the JSON property inlineRenderFormat

Returns:

  • (String)


375
376
377
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 375

def inline_render_format
  @inline_render_format
end

#integration_config_updatedGoogle::Apis::CloudsearchV1::IntegrationConfigUpdatedMetadata

Annotation metadata to display system message for integration config updated event. This metadata is stored in spanner, and can be dispatched to clients without any field modification or transformation. Corresponds to the JSON property integrationConfigUpdated



382
383
384
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 382

def integration_config_updated
  @integration_config_updated
end

#interaction_dataGoogle::Apis::CloudsearchV1::InteractionData

Interaction data for an annotation, which may be supplemental to the metadata oneof. For example, this will contain the fully built navigation target for smart chips. NEXT TAG: 2 Corresponds to the JSON property interactionData



389
390
391
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 389

def interaction_data
  @interaction_data
end

#lengthFixnum

Length of the text_body substring beginning from start_index the Annotation corresponds to. Corresponds to the JSON property length

Returns:

  • (Fixnum)


395
396
397
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 395

def length
  @length
end

#local_idString

  • A client-assigned ID for this annotation. This is helpful in matching the back-filled annotations to the original annotations on client side, without having to re-parse the message. There is no guarantee an annotation has a local_id, it's a purely client used and controlled field with no guarantee of uniqueness. Corresponds to the JSON property localId

Returns:

  • (String)


404
405
406
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 404

def local_id
  @local_id
end

#membership_changedGoogle::Apis::CloudsearchV1::MembershipChangedMetadata

Annotation metadata to display system messages for membership changes. Next Tag: 8 Corresponds to the JSON property membershipChanged



410
411
412
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 410

def membership_changed
  @membership_changed
end

#read_receipts_settings_metadataGoogle::Apis::CloudsearchV1::ReadReceiptsSettingsUpdatedMetadata

Corresponds to the JSON property readReceiptsSettingsMetadata



415
416
417
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 415

def 
  @read_receipts_settings_metadata
end

#required_message_features_metadataGoogle::Apis::CloudsearchV1::RequiredMessageFeaturesMetadata

A list of capabilities that are used in this message. Corresponds to the JSON property requiredMessageFeaturesMetadata



420
421
422
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 420

def 
  @required_message_features_metadata
end

#room_updatedGoogle::Apis::CloudsearchV1::RoomUpdatedMetadata

Corresponds to the JSON property roomUpdated



425
426
427
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 425

def room_updated
  @room_updated
end

#server_invalidatedBoolean Also known as: server_invalidated?

Whether or not the annotation is invalidated by the server. Example of situations for invalidation include: when the URL is malformed, or when Drive item ID is rejected by Drive Service. Corresponds to the JSON property serverInvalidated

Returns:

  • (Boolean)


432
433
434
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 432

def server_invalidated
  @server_invalidated
end

#slash_command_metadataGoogle::Apis::CloudsearchV1::SlashCommandMetadata

Annotation metadata for slash commands (/). Corresponds to the JSON property slashCommandMetadata



438
439
440
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 438

def 
  @slash_command_metadata
end

#start_indexFixnum

Start index (0-indexed) of the Message text the Annotation corresponds to, inclusive. Corresponds to the JSON property startIndex

Returns:

  • (Fixnum)


444
445
446
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 444

def start_index
  @start_index
end

#typeString

Type of the Annotation. Corresponds to the JSON property type

Returns:

  • (String)


449
450
451
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 449

def type
  @type
end

#unique_idString

  • A unique server-assigned ID for this annotation. This is helpful in matching annotation objects when fetched from service. All uploads should have a unique_id after the message they are attached to is successfully sent. Url annotations that originally were uploads (i.e. policy violations) will have a unique_id after the message they are attached to is successfully sent. No other url annotations should have a unique_id. All drive annotations should have a unique_id after the message they are attached to is successfully sent. Corresponds to the JSON property uniqueId

Returns:

  • (String)


460
461
462
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 460

def unique_id
  @unique_id
end

#upload_metadataGoogle::Apis::CloudsearchV1::UploadMetadata

Annotation metadata for user Upload artifacts. Corresponds to the JSON property uploadMetadata



465
466
467
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 465

def 
  @upload_metadata
end

#url_metadataGoogle::Apis::CloudsearchV1::UrlMetadata

Annotation metadata for a Weblink. In case of pasted link it can qualify to be other types in addition to being a URL - like DRIVE_DOC/DRIVE_SHEET and so on. The URL metadata will also be present and it's up to the client to decide which metadata to render it with. These fields are filled in using page render service. Corresponds to the JSON property urlMetadata



474
475
476
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 474

def 
  @url_metadata
end

#user_mention_metadataGoogle::Apis::CloudsearchV1::UserMentionMetadata

Annotation metadata for user mentions (+/@/-). Corresponds to the JSON property userMentionMetadata



479
480
481
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 479

def 
  @user_mention_metadata
end

#video_call_metadataGoogle::Apis::CloudsearchV1::VideoCallMetadata

Corresponds to the JSON property videoCallMetadata



484
485
486
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 484

def 
  @video_call_metadata
end

#youtube_metadataGoogle::Apis::CloudsearchV1::YoutubeMetadata

Annotation metadata for YouTube artifact. Corresponds to the JSON property youtubeMetadata



489
490
491
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 489

def 
  @youtube_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 496

def update!(**args)
  @babel_placeholder_metadata = args[:babel_placeholder_metadata] if args.key?(:babel_placeholder_metadata)
  @card_capability_metadata = args[:card_capability_metadata] if args.key?(:card_capability_metadata)
  @chip_render_type = args[:chip_render_type] if args.key?(:chip_render_type)
  @consented_app_unfurl_metadata = args[:consented_app_unfurl_metadata] if args.key?(:consented_app_unfurl_metadata)
  @custom_emoji_metadata = args[:custom_emoji_metadata] if args.key?(:custom_emoji_metadata)
  @data_loss_prevention_metadata = args[:data_loss_prevention_metadata] if args.key?(:data_loss_prevention_metadata)
  @drive_metadata = args[:drive_metadata] if args.key?(:drive_metadata)
  @format_metadata = args[:format_metadata] if args.key?(:format_metadata)
  @group_retention_settings_updated = args[:group_retention_settings_updated] if args.key?(:group_retention_settings_updated)
  @gsuite_integration_metadata = args[:gsuite_integration_metadata] if args.key?(:gsuite_integration_metadata)
  @incoming_webhook_changed_metadata = args[:incoming_webhook_changed_metadata] if args.key?(:incoming_webhook_changed_metadata)
  @inline_render_format = args[:inline_render_format] if args.key?(:inline_render_format)
  @integration_config_updated = args[:integration_config_updated] if args.key?(:integration_config_updated)
  @interaction_data = args[:interaction_data] if args.key?(:interaction_data)
  @length = args[:length] if args.key?(:length)
  @local_id = args[:local_id] if args.key?(:local_id)
  @membership_changed = args[:membership_changed] if args.key?(:membership_changed)
  @read_receipts_settings_metadata = args[:read_receipts_settings_metadata] if args.key?(:read_receipts_settings_metadata)
  @required_message_features_metadata = args[:required_message_features_metadata] if args.key?(:required_message_features_metadata)
  @room_updated = args[:room_updated] if args.key?(:room_updated)
  @server_invalidated = args[:server_invalidated] if args.key?(:server_invalidated)
  @slash_command_metadata = args[:slash_command_metadata] if args.key?(:slash_command_metadata)
  @start_index = args[:start_index] if args.key?(:start_index)
  @type = args[:type] if args.key?(:type)
  @unique_id = args[:unique_id] if args.key?(:unique_id)
  @upload_metadata = args[:upload_metadata] if args.key?(:upload_metadata)
  @url_metadata = args[:url_metadata] if args.key?(:url_metadata)
  @user_mention_metadata = args[:user_mention_metadata] if args.key?(:user_mention_metadata)
  @video_call_metadata = args[:video_call_metadata] if args.key?(:video_call_metadata)
  @youtube_metadata = args[:youtube_metadata] if args.key?(:youtube_metadata)
end