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.



2156
2157
2158
# File 'lib/google/apis/dlp_v2/classes.rb', line 2156

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

Instance Attribute Details

#contentString

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

Returns:

  • (String)


2141
2142
2143
# File 'lib/google/apis/dlp_v2/classes.rb', line 2141

def content
  @content
end

#message_typeString

The type of message. Corresponds to the JSON property messageType

Returns:

  • (String)


2146
2147
2148
# File 'lib/google/apis/dlp_v2/classes.rb', line 2146

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)


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