Class: Google::Apis::CloudsearchV1::PrivateMessageInfo

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

Private message information specific to a given user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrivateMessageInfo

Returns a new instance of PrivateMessageInfo.



13054
13055
13056
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13054

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

Instance Attribute Details

#annotationsArray<Google::Apis::CloudsearchV1::Annotation>

Annotations private to @code userId. Corresponds to the JSON property annotations



13025
13026
13027
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13025

def annotations
  @annotations
end

#attachmentsArray<Google::Apis::CloudsearchV1::Attachment>

Attachments private to @code userId. Corresponds to the JSON property attachments



13030
13031
13032
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13030

def attachments
  @attachments
end

#contextual_add_on_markupArray<Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkup>

Corresponds to the JSON property contextualAddOnMarkup



13035
13036
13037
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13035

def contextual_add_on_markup
  @contextual_add_on_markup
end

#gsuite_integration_metadataArray<Google::Apis::CloudsearchV1::GsuiteIntegrationMetadata>

Corresponds to the JSON property gsuiteIntegrationMetadata



13040
13041
13042
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13040

def 
  @gsuite_integration_metadata
end

#textString

Text private to @code user_id. Initial restriction: Only one of public text or private text is rendered on the client. So if public text is set, private text is ignored. Corresponds to the JSON property text

Returns:

  • (String)


13047
13048
13049
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13047

def text
  @text
end

#user_idGoogle::Apis::CloudsearchV1::UserId

Primary key for User resource. Corresponds to the JSON property userId



13052
13053
13054
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13052

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13059
13060
13061
13062
13063
13064
13065
13066
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13059

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @attachments = args[:attachments] if args.key?(:attachments)
  @contextual_add_on_markup = args[:contextual_add_on_markup] if args.key?(:contextual_add_on_markup)
  @gsuite_integration_metadata = args[:gsuite_integration_metadata] if args.key?(:gsuite_integration_metadata)
  @text = args[:text] if args.key?(:text)
  @user_id = args[:user_id] if args.key?(:user_id)
end