Class: Google::Apis::DlpV2::GooglePrivacyDlpV2ConversationMessage

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb

Overview

Single message in a conversation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2ConversationMessage

Returns a new instance of GooglePrivacyDlpV2ConversationMessage.



2206
2207
2208
# File 'lib/google/apis/dlp_v2/classes.rb', line 2206

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

Instance Attribute Details

#contentString

The contents of this message. Corresponds to the JSON property content

Returns:

  • (String)


2191
2192
2193
# File 'lib/google/apis/dlp_v2/classes.rb', line 2191

def content
  @content
end

#message_typeString

The type of message. Corresponds to the JSON property messageType

Returns:

  • (String)


2196
2197
2198
# File 'lib/google/apis/dlp_v2/classes.rb', line 2196

def message_type
  @message_type
end

#participant_idString

Optional. The identifier of the participant, for example 'test-user' or ' gemini'. The participant ID can contain lowercase letters, numbers, and hyphens; that is, it must match the regular expression: ^[a-z]([a-z0-9-]0,61 [a-z0-9])?$. The maximum length is 63 characters. Corresponds to the JSON property participantId

Returns:

  • (String)


2204
2205
2206
# File 'lib/google/apis/dlp_v2/classes.rb', line 2204

def participant_id
  @participant_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2211
2212
2213
2214
2215
# File 'lib/google/apis/dlp_v2/classes.rb', line 2211

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @message_type = args[:message_type] if args.key?(:message_type)
  @participant_id = args[:participant_id] if args.key?(:participant_id)
end