Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Document

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Document

Returns a new instance of GoogleCloudDialogflowV2beta1Document.



13082
13083
13084
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13082

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

Instance Attribute Details

#contentString

Corresponds to the JSON property content

Returns:

  • (String)


13028
13029
13030
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13028

def content
  @content
end

#content_uriString

Corresponds to the JSON property contentUri

Returns:

  • (String)


13033
13034
13035
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13033

def content_uri
  @content_uri
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


13038
13039
13040
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13038

def display_name
  @display_name
end

#enable_auto_reloadBoolean Also known as: enable_auto_reload?

Corresponds to the JSON property enableAutoReload

Returns:

  • (Boolean)


13043
13044
13045
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13043

def enable_auto_reload
  @enable_auto_reload
end

#knowledge_typesArray<String>

Corresponds to the JSON property knowledgeTypes

Returns:

  • (Array<String>)


13049
13050
13051
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13049

def knowledge_types
  @knowledge_types
end

#latest_reload_statusGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DocumentReloadStatus

Corresponds to the JSON property latestReloadStatus



13054
13055
13056
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13054

def latest_reload_status
  @latest_reload_status
end

#metadataHash<String,String>

Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


13059
13060
13061
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13059

def 
  @metadata
end

#mime_typeString

Corresponds to the JSON property mimeType

Returns:

  • (String)


13064
13065
13066
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13064

def mime_type
  @mime_type
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


13069
13070
13071
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13069

def name
  @name
end

#raw_contentString

Corresponds to the JSON property rawContent NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


13075
13076
13077
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13075

def raw_content
  @raw_content
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


13080
13081
13082
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13080

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13087

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @content_uri = args[:content_uri] if args.key?(:content_uri)
  @display_name = args[:display_name] if args.key?(:display_name)
  @enable_auto_reload = args[:enable_auto_reload] if args.key?(:enable_auto_reload)
  @knowledge_types = args[:knowledge_types] if args.key?(:knowledge_types)
  @latest_reload_status = args[:latest_reload_status] if args.key?(:latest_reload_status)
  @metadata = args[:metadata] if args.key?(:metadata)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
  @name = args[:name] if args.key?(:name)
  @raw_content = args[:raw_content] if args.key?(:raw_content)
  @state = args[:state] if args.key?(:state)
end