Class: Google::Apis::CloudsearchV1::Attribute

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

Overview

An Attribute is a piece of data attached an Item. Attributes are opaque to the Starbox and have no effect on, nor are they effected by, message storage, indexing, or search.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Attribute

Returns a new instance of Attribute.



4485
4486
4487
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4485

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

Instance Attribute Details

#nameString

The name of the attribute. Required - If a write is attempted with an empty string, the server will return an error. Corresponds to the JSON property name

Returns:

  • (String)


4478
4479
4480
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4478

def name
  @name
end

#valueGoogle::Apis::CloudsearchV1::CaribouAttributeValue

Corresponds to the JSON property value



4483
4484
4485
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4483

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4490
4491
4492
4493
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4490

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