Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1Schema

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

Overview

Defines the structure and layout of a type of document data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1Schema

Returns a new instance of GoogleCloudDiscoveryengineV1Schema.



1298
1299
1300
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1298

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

Instance Attribute Details

#json_schemaString

The JSON representation of the schema. Corresponds to the JSON property jsonSchema

Returns:

  • (String)


1283
1284
1285
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1283

def json_schema
  @json_schema
end

#nameString

Immutable. The full resource name of the schema, in the format of projects/ project/locations/location/collections/collection/dataStores/data_store/ schemas/schema`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Corresponds to the JSON propertyname`

Returns:

  • (String)


1291
1292
1293
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1291

def name
  @name
end

#struct_schemaHash<String,Object>

The structured representation of the schema. Corresponds to the JSON property structSchema

Returns:

  • (Hash<String,Object>)


1296
1297
1298
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1296

def struct_schema
  @struct_schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1303
1304
1305
1306
1307
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1303

def update!(**args)
  @json_schema = args[:json_schema] if args.key?(:json_schema)
  @name = args[:name] if args.key?(:name)
  @struct_schema = args[:struct_schema] if args.key?(:struct_schema)
end