Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TypeSchema

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1TypeSchema

Returns a new instance of GoogleCloudDialogflowCxV3beta1TypeSchema.



15538
15539
15540
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15538

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

Instance Attribute Details

#inline_schemaGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1InlineSchema

A type schema object that's specified inline. Corresponds to the JSON property inlineSchema



15531
15532
15533
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15531

def inline_schema
  @inline_schema
end

#schema_referenceGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TypeSchemaSchemaReference

A reference to the schema of an existing tool. Corresponds to the JSON property schemaReference



15536
15537
15538
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15536

def schema_reference
  @schema_reference
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15543
15544
15545
15546
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 15543

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