class Google::Apis::CloudsearchV1::ObjectDefinition

The definition for an object within a data source.

Attributes

name[RW]

Name for the object, which then defines its type. Item indexing requests should set the objectType field equal to this value. For example, if name is Document, then indexing requests for items of type Document should set objectType equal to Document. Each object definition must be uniquely named within a schema. The name must start with a letter and can only contain letters (A-Z, a-z) or numbers (0-9). The maximum length is 256 characters. Corresponds to the JSON property `name` @return [String]

options[RW]

The options for an object. Corresponds to the JSON property `options` @return [Google::Apis::CloudsearchV1::ObjectOptions]

property_definitions[RW]

The property definitions for the object. The maximum number of elements is 1000. Corresponds to the JSON property `propertyDefinitions` @return [Array<Google::Apis::CloudsearchV1::PropertyDefinition>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 2578
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 2583
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @options = args[:options] if args.key?(:options)
  @property_definitions = args[:property_definitions] if args.key?(:property_definitions)
end