Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ImportEntityTypesRequest

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

Overview

The request message for EntityTypes.ImportEntityTypes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3ImportEntityTypesRequest

Returns a new instance of GoogleCloudDialogflowCxV3ImportEntityTypesRequest.



3498
3499
3500
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3498

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

Instance Attribute Details

#entity_types_contentGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3InlineSource

Inline source for a Dialogflow operation that reads or imports objects (e.g. intents) into Dialogflow. Corresponds to the JSON property entityTypesContent



3472
3473
3474
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3472

def entity_types_content
  @entity_types_content
end

#entity_types_uriString

The Google Cloud Storage URI to import entity types from. The format of this URI must be gs:///. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control. Corresponds to the JSON property entityTypesUri

Returns:

  • (String)


3482
3483
3484
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3482

def entity_types_uri
  @entity_types_uri
end

#merge_optionString

Required. Merge option for importing entity types. Corresponds to the JSON property mergeOption

Returns:

  • (String)


3487
3488
3489
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3487

def merge_option
  @merge_option
end

#target_entity_typeString

Optional. The target entity type to import into. Format: projects//locations// agents//entity_types/. If set, there should be only one entity type included in entity_types, of which the type should match the type of the target entity type. All entities in the imported entity type will be added to the target entity type. Corresponds to the JSON property targetEntityType

Returns:

  • (String)


3496
3497
3498
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3496

def target_entity_type
  @target_entity_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3503
3504
3505
3506
3507
3508
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3503

def update!(**args)
  @entity_types_content = args[:entity_types_content] if args.key?(:entity_types_content)
  @entity_types_uri = args[:entity_types_uri] if args.key?(:entity_types_uri)
  @merge_option = args[:merge_option] if args.key?(:merge_option)
  @target_entity_type = args[:target_entity_type] if args.key?(:target_entity_type)
end