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: 29

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Annotation

Returns a new instance of Annotation.



452
453
454
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 452

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



295
296
297
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 295

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



301
302
303
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 301

def 
  @card_capability_metadata
end

#chip_render_typeString

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

Returns:

  • (String)


307
308
309
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 307

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



312
313
314
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 312

def 
  @consented_app_unfurl_metadata
end

#custom_emoji_metadataGoogle::Apis::CloudsearchV1::CustomEmojiMetadata

Corresponds to the JSON property customEmojiMetadata



317
318
319
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 317

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



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

def 
  @data_loss_prevention_metadata
end

#drive_metadataGoogle::Apis::CloudsearchV1::DriveMetadata

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



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

def 
  @drive_metadata
end

#format_metadataGoogle::Apis::CloudsearchV1::FormatMetadata

Annotation metadata for markup formatting Corresponds to the JSON property formatMetadata



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

def 
  @format_metadata
end

#group_retention_settings_updatedGoogle::Apis::CloudsearchV1::GroupRetentionSettingsUpdatedMetaData

Corresponds to the JSON property groupRetentionSettingsUpdated



340
341
342
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 340

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



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

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



351
352
353
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 351

def 
  @incoming_webhook_changed_metadata
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



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

def integration_config_updated
  @integration_config_updated
end

#lengthFixnum

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

Returns:

  • (Fixnum)


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

def length
  @length
end

#local_idString

A unique 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. Corresponds to the JSON property localId

Returns:

  • (String)


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

def local_id
  @local_id
end

#membership_changedGoogle::Apis::CloudsearchV1::MembershipChangedMetadata

Annotation metadata to display system messages for membership changes. Corresponds to the JSON property membershipChanged



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

def membership_changed
  @membership_changed
end

#read_receipts_settings_metadataGoogle::Apis::CloudsearchV1::ReadReceiptsSettingsUpdatedMetadata

Corresponds to the JSON property readReceiptsSettingsMetadata



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

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



386
387
388
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 386

def 
  @required_message_features_metadata
end

#room_updatedGoogle::Apis::CloudsearchV1::RoomUpdatedMetadata

Corresponds to the JSON property roomUpdated



391
392
393
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 391

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)


398
399
400
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 398

def server_invalidated
  @server_invalidated
end

#slash_command_metadataGoogle::Apis::CloudsearchV1::SlashCommandMetadata

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



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

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)


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

def start_index
  @start_index
end

#typeString

Type of the Annotation. Corresponds to the JSON property type

Returns:

  • (String)


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

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. Corresponds to the JSON property uniqueId

Returns:

  • (String)


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

def unique_id
  @unique_id
end

#upload_metadataGoogle::Apis::CloudsearchV1::UploadMetadata

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



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

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



435
436
437
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 435

def 
  @url_metadata
end

#user_mention_metadataGoogle::Apis::CloudsearchV1::UserMentionMetadata

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



440
441
442
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 440

def 
  @user_mention_metadata
end

#video_call_metadataGoogle::Apis::CloudsearchV1::VideoCallMetadata

Corresponds to the JSON property videoCallMetadata



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

def 
  @video_call_metadata
end

#youtube_metadataGoogle::Apis::CloudsearchV1::YoutubeMetadata

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



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

def 
  @youtube_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 457

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)
  @integration_config_updated = args[:integration_config_updated] if args.key?(:integration_config_updated)
  @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