Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1InlineSchema

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

Overview

A type schema object that's specified inline.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1InlineSchema

Returns a new instance of GoogleCloudDialogflowCxV3beta1InlineSchema.



8905
8906
8907
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8905

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

Instance Attribute Details

#itemsGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TypeSchema

Encapsulates different type schema variations: either a reference to an a schema that's already defined by a tool, or an inline definition. Corresponds to the JSON property items



8898
8899
8900
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8898

def items
  @items
end

#typeString

Data type of the schema. Corresponds to the JSON property type

Returns:

  • (String)


8903
8904
8905
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8903

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8910
8911
8912
8913
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8910

def update!(**args)
  @items = args[:items] if args.key?(:items)
  @type = args[:type] if args.key?(:type)
end