Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationDataset

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

Overview

Represents a conversation dataset that a user imports raw data into. The data inside ConversationDataset can not be changed after ImportConversationData finishes (and calling ImportConversationData on a dataset that already has data is not allowed).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationDataset

Returns a new instance of GoogleCloudDialogflowV2ConversationDataset.



7252
7253
7254
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7252

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

Instance Attribute Details

#conversation_countFixnum

Output only. The number of conversations this conversation dataset contains. Corresponds to the JSON property conversationCount

Returns:

  • (Fixnum)


7218
7219
7220
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7218

def conversation_count
  @conversation_count
end

#conversation_infoGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationInfo

Represents metadata of a conversation. Corresponds to the JSON property conversationInfo



7223
7224
7225
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7223

def conversation_info
  @conversation_info
end

#create_timeString

Output only. Creation time of this dataset. Corresponds to the JSON property createTime

Returns:

  • (String)


7228
7229
7230
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7228

def create_time
  @create_time
end

#descriptionString

Optional. The description of the dataset. Maximum of 10000 bytes. Corresponds to the JSON property description

Returns:

  • (String)


7233
7234
7235
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7233

def description
  @description
end

#display_nameString

Required. The display name of the dataset. Maximum of 64 bytes. Corresponds to the JSON property displayName

Returns:

  • (String)


7238
7239
7240
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7238

def display_name
  @display_name
end

#input_configGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2InputConfig

Represents the configuration of importing a set of conversation files in Google Cloud Storage. Corresponds to the JSON property inputConfig



7244
7245
7246
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7244

def input_config
  @input_config
end

#nameString

Output only. ConversationDataset resource name. Format: projects//locations// conversationDatasets/ Corresponds to the JSON property name

Returns:

  • (String)


7250
7251
7252
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7250

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7257
7258
7259
7260
7261
7262
7263
7264
7265
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7257

def update!(**args)
  @conversation_count = args[:conversation_count] if args.key?(:conversation_count)
  @conversation_info = args[:conversation_info] if args.key?(:conversation_info)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @input_config = args[:input_config] if args.key?(:input_config)
  @name = args[:name] if args.key?(:name)
end