Class: Google::Apis::CloudsearchV1::BabelPlaceholderMetadata

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

Annotation metadata for Babel-only items that signals which type of placeholder message should be displayed in Babel clients.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BabelPlaceholderMetadata

Returns a new instance of BabelPlaceholderMetadata.



5102
5103
5104
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5102

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

Instance Attribute Details

#delete_metadataGoogle::Apis::CloudsearchV1::DeleteMetadata

A message delete in Dynamite inserts a Babel-only item containing this field. This is only inserted for messages before the source-of-truth flip. See go/hsc- message-deletions for more details. Corresponds to the JSON property deleteMetadata



5090
5091
5092
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5090

def 
  @delete_metadata
end

#edit_metadataGoogle::Apis::CloudsearchV1::EditMetadata

A message edit in Dynamite inserts a Babel-only item containing this field. Corresponds to the JSON property editMetadata



5095
5096
5097
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5095

def 
  @edit_metadata
end

#hangout_video_metadataGoogle::Apis::CloudsearchV1::HangoutVideoEventMetadata

A message representing the Hangout video start/end events in Babel Corresponds to the JSON property hangoutVideoMetadata



5100
5101
5102
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5100

def 
  @hangout_video_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5107
5108
5109
5110
5111
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5107

def update!(**args)
  @delete_metadata = args[:delete_metadata] if args.key?(:delete_metadata)
  @edit_metadata = args[:edit_metadata] if args.key?(:edit_metadata)
  @hangout_video_metadata = args[:hangout_video_metadata] if args.key?(:hangout_video_metadata)
end