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.
2206 2207 2208 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2206 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
The contents of this message.
Corresponds to the JSON property content
2191 2192 2193 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2191 def content @content end |
#message_type ⇒ String
The type of message.
Corresponds to the JSON property messageType
2196 2197 2198 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2196 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
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 |