Class: Google::Apis::CloudsearchV1::Annotation
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Annotation
- 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
-
#babel_placeholder_metadata ⇒ Google::Apis::CloudsearchV1::BabelPlaceholderMetadata
Annotation metadata for Babel-only items that signals which type of placeholder message should be displayed in Babel clients.
-
#card_capability_metadata ⇒ Google::Apis::CloudsearchV1::CardCapabilityMetadata
LINT.ThenChange(//depot/google3/java/com/google/apps/dynamite/v1/backend/ action/common/SystemMessageHelper.java) Corresponds to the JSON property
cardCapabilityMetadata. -
#chip_render_type ⇒ String
Whether the annotation should be rendered as a chip.
-
#consented_app_unfurl_metadata ⇒ Google::Apis::CloudsearchV1::ConsentedAppUnfurlMetadata
Annotation metadata app unfurl consent.
-
#custom_emoji_metadata ⇒ Google::Apis::CloudsearchV1::CustomEmojiMetadata
Corresponds to the JSON property
customEmojiMetadata. -
#data_loss_prevention_metadata ⇒ Google::Apis::CloudsearchV1::DataLossPreventionMetadata
Annotation metadata for Data Loss Prevention that pertains to DLP violation on message send or edit events.
-
#drive_metadata ⇒ Google::Apis::CloudsearchV1::DriveMetadata
Annotation metadata for Drive artifacts.
-
#format_metadata ⇒ Google::Apis::CloudsearchV1::FormatMetadata
Annotation metadata for markup formatting Corresponds to the JSON property
formatMetadata. -
#group_retention_settings_updated ⇒ Google::Apis::CloudsearchV1::GroupRetentionSettingsUpdatedMetaData
Corresponds to the JSON property
groupRetentionSettingsUpdated. -
#gsuite_integration_metadata ⇒ Google::Apis::CloudsearchV1::GsuiteIntegrationMetadata
Annotation metadata for an GsuiteIntegration artifact.
-
#incoming_webhook_changed_metadata ⇒ Google::Apis::CloudsearchV1::IncomingWebhookChangedMetadata
Annotation metadata to display system messages for incoming webhook events.
-
#integration_config_updated ⇒ Google::Apis::CloudsearchV1::IntegrationConfigUpdatedMetadata
Annotation metadata to display system message for integration config updated event.
-
#length ⇒ Fixnum
Length of the text_body substring beginning from start_index the Annotation corresponds to.
-
#local_id ⇒ String
A unique client-assigned ID for this annotation.
-
#membership_changed ⇒ Google::Apis::CloudsearchV1::MembershipChangedMetadata
Annotation metadata to display system messages for membership changes.
-
#read_receipts_settings_metadata ⇒ Google::Apis::CloudsearchV1::ReadReceiptsSettingsUpdatedMetadata
Corresponds to the JSON property
readReceiptsSettingsMetadata. -
#required_message_features_metadata ⇒ Google::Apis::CloudsearchV1::RequiredMessageFeaturesMetadata
A list of capabilities that are used in this message.
-
#room_updated ⇒ Google::Apis::CloudsearchV1::RoomUpdatedMetadata
Corresponds to the JSON property
roomUpdated. -
#server_invalidated ⇒ Boolean
(also: #server_invalidated?)
Whether or not the annotation is invalidated by the server.
-
#slash_command_metadata ⇒ Google::Apis::CloudsearchV1::SlashCommandMetadata
Annotation metadata for slash commands (/).
-
#start_index ⇒ Fixnum
Start index (0-indexed) of the Message text the Annotation corresponds to, inclusive.
-
#type ⇒ String
Type of the Annotation.
-
#unique_id ⇒ String
A unique server-assigned ID for this annotation.
-
#upload_metadata ⇒ Google::Apis::CloudsearchV1::UploadMetadata
Annotation metadata for user Upload artifacts.
-
#url_metadata ⇒ Google::Apis::CloudsearchV1::UrlMetadata
Annotation metadata for a Weblink.
-
#user_mention_metadata ⇒ Google::Apis::CloudsearchV1::UserMentionMetadata
Annotation metadata for user mentions (+/@/-).
-
#video_call_metadata ⇒ Google::Apis::CloudsearchV1::VideoCallMetadata
Corresponds to the JSON property
videoCallMetadata. -
#youtube_metadata ⇒ Google::Apis::CloudsearchV1::YoutubeMetadata
Annotation metadata for YouTube artifact.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Annotation
constructor
A new instance of Annotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Annotation
Returns a new instance of Annotation.
472 473 474 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 472 def initialize(**args) update!(**args) end |
Instance Attribute Details
#babel_placeholder_metadata ⇒ Google::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_metadata ⇒ Google::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_type ⇒ String
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
326 327 328 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 326 def chip_render_type @chip_render_type end |
#consented_app_unfurl_metadata ⇒ Google::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_metadata ⇒ Google::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_metadata ⇒ Google::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_metadata ⇒ Google::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_metadata ⇒ Google::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_updated ⇒ Google::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_metadata ⇒ Google::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_metadata ⇒ Google::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 |
#integration_config_updated ⇒ Google::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
377 378 379 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 377 def integration_config_updated @integration_config_updated end |
#length ⇒ Fixnum
Length of the text_body substring beginning from start_index the Annotation
corresponds to.
Corresponds to the JSON property length
383 384 385 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 383 def length @length end |
#local_id ⇒ String
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
390 391 392 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 390 def local_id @local_id end |
#membership_changed ⇒ Google::Apis::CloudsearchV1::MembershipChangedMetadata
Annotation metadata to display system messages for membership changes. Next
Tag: 8
Corresponds to the JSON property membershipChanged
396 397 398 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 396 def membership_changed @membership_changed end |
#read_receipts_settings_metadata ⇒ Google::Apis::CloudsearchV1::ReadReceiptsSettingsUpdatedMetadata
Corresponds to the JSON property readReceiptsSettingsMetadata
401 402 403 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 401 def @read_receipts_settings_metadata end |
#required_message_features_metadata ⇒ Google::Apis::CloudsearchV1::RequiredMessageFeaturesMetadata
A list of capabilities that are used in this message.
Corresponds to the JSON property requiredMessageFeaturesMetadata
406 407 408 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 406 def @required_message_features_metadata end |
#room_updated ⇒ Google::Apis::CloudsearchV1::RoomUpdatedMetadata
Corresponds to the JSON property roomUpdated
411 412 413 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 411 def room_updated @room_updated end |
#server_invalidated ⇒ Boolean 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
418 419 420 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 418 def server_invalidated @server_invalidated end |
#slash_command_metadata ⇒ Google::Apis::CloudsearchV1::SlashCommandMetadata
Annotation metadata for slash commands (/).
Corresponds to the JSON property slashCommandMetadata
424 425 426 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 424 def @slash_command_metadata end |
#start_index ⇒ Fixnum
Start index (0-indexed) of the Message text the Annotation corresponds to,
inclusive.
Corresponds to the JSON property startIndex
430 431 432 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 430 def start_index @start_index end |
#type ⇒ String
Type of the Annotation.
Corresponds to the JSON property type
435 436 437 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 435 def type @type end |
#unique_id ⇒ String
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
441 442 443 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 441 def unique_id @unique_id end |
#upload_metadata ⇒ Google::Apis::CloudsearchV1::UploadMetadata
Annotation metadata for user Upload artifacts.
Corresponds to the JSON property uploadMetadata
446 447 448 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 446 def @upload_metadata end |
#url_metadata ⇒ Google::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
455 456 457 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 455 def @url_metadata end |
#user_mention_metadata ⇒ Google::Apis::CloudsearchV1::UserMentionMetadata
Annotation metadata for user mentions (+/@/-).
Corresponds to the JSON property userMentionMetadata
460 461 462 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 460 def @user_mention_metadata end |
#video_call_metadata ⇒ Google::Apis::CloudsearchV1::VideoCallMetadata
Corresponds to the JSON property videoCallMetadata
465 466 467 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 465 def @video_call_metadata end |
#youtube_metadata ⇒ Google::Apis::CloudsearchV1::YoutubeMetadata
Annotation metadata for YouTube artifact.
Corresponds to the JSON property youtubeMetadata
470 471 472 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 470 def @youtube_metadata end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 477 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 |