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.
2156 2157 2158 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2156 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
The contents of this message.
Corresponds to the JSON property content
2141 2142 2143 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2141 def content @content end |
#message_type ⇒ String
The type of message.
Corresponds to the JSON property messageType
2146 2147 2148 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2146 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
2154 2155 2156 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2154 def participant_id @participant_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2161 2162 2163 2164 2165 |
# File 'lib/google/apis/dlp_v2/classes.rb', line 2161 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 |