Class: Google::Apis::DlpV2::GooglePrivacyDlpV2ConversationMessage
- Inherits:
-
Object
- Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2ConversationMessage
- 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
-
#content ⇒ String
The contents of this message.
-
#message_type ⇒ String
The type of message.
-
#participant_id ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GooglePrivacyDlpV2ConversationMessage
constructor
A new instance of GooglePrivacyDlpV2ConversationMessage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2ConversationMessage
Returns a new instance of GooglePrivacyDlpV2ConversationMessage.
2311 2312 2313 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2311 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
The contents of this message.
Corresponds to the JSON property content
2296 2297 2298 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2296 def content @content end |
#message_type ⇒ String
The type of message.
Corresponds to the JSON property messageType
2301 2302 2303 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2301 def @message_type end |
#participant_id ⇒ String
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
2309 2310 2311 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2309 def participant_id @participant_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2316 2317 2318 2319 2320 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2316 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 |