Class: Google::Apis::ContentV2_1::CloudExportAdditionalProperties

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

Overview

Product property for the Cloud Retail API. For example, properties for a TV product could be "Screen-Resolution" or "Screen-Size".

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudExportAdditionalProperties

Returns a new instance of CloudExportAdditionalProperties.



3023
3024
3025
# File 'lib/google/apis/content_v2_1/classes.rb', line 3023

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

Instance Attribute Details

#bool_valueBoolean Also known as: bool_value?

Boolean value of the given property. For example for a TV product, "True" or " False" if the screen is UHD. Corresponds to the JSON property boolValue

Returns:

  • (Boolean)


2976
2977
2978
# File 'lib/google/apis/content_v2_1/classes.rb', line 2976

def bool_value
  @bool_value
end

#float_valueArray<Float>

Float values of the given property. For example for a TV product 1.2345. Maximum number of specified values for this field is 400. Values are stored in an arbitrary but consistent order. Corresponds to the JSON property floatValue

Returns:

  • (Array<Float>)


2984
2985
2986
# File 'lib/google/apis/content_v2_1/classes.rb', line 2984

def float_value
  @float_value
end

#int_valueArray<Fixnum>

Integer values of the given property. For example, 1080 for a screen resolution of a TV product. Maximum number of specified values for this field is 400. Values are stored in an arbitrary but consistent order. Corresponds to the JSON property intValue

Returns:

  • (Array<Fixnum>)


2991
2992
2993
# File 'lib/google/apis/content_v2_1/classes.rb', line 2991

def int_value
  @int_value
end

#max_valueFloat

Maximum float value of the given property. For example for a TV product 100.00. Corresponds to the JSON property maxValue

Returns:

  • (Float)


2996
2997
2998
# File 'lib/google/apis/content_v2_1/classes.rb', line 2996

def max_value
  @max_value
end

#min_valueFloat

Minimum float value of the given property. For example for a TV product 1.00. Corresponds to the JSON property minValue

Returns:

  • (Float)


3001
3002
3003
# File 'lib/google/apis/content_v2_1/classes.rb', line 3001

def min_value
  @min_value
end

#property_nameString

Name of the given property. For example, "Screen-Resolution" for a TV product. Maximum string size is 256 characters. Corresponds to the JSON property propertyName

Returns:

  • (String)


3007
3008
3009
# File 'lib/google/apis/content_v2_1/classes.rb', line 3007

def property_name
  @property_name
end

#text_valueArray<String>

Text value of the given property. For example, "8K(UHD)" could be a text value for a TV product. Maximum number of specified values for this field is 400. Values are stored in an arbitrary but consistent order. Maximum string size is 256 characters. Corresponds to the JSON property textValue

Returns:

  • (Array<String>)


3015
3016
3017
# File 'lib/google/apis/content_v2_1/classes.rb', line 3015

def text_value
  @text_value
end

#unit_codeString

Unit of the given property. For example, "Pixels" for a TV product. Maximum string size is 256 bytes. Corresponds to the JSON property unitCode

Returns:

  • (String)


3021
3022
3023
# File 'lib/google/apis/content_v2_1/classes.rb', line 3021

def unit_code
  @unit_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
# File 'lib/google/apis/content_v2_1/classes.rb', line 3028

def update!(**args)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @float_value = args[:float_value] if args.key?(:float_value)
  @int_value = args[:int_value] if args.key?(:int_value)
  @max_value = args[:max_value] if args.key?(:max_value)
  @min_value = args[:min_value] if args.key?(:min_value)
  @property_name = args[:property_name] if args.key?(:property_name)
  @text_value = args[:text_value] if args.key?(:text_value)
  @unit_code = args[:unit_code] if args.key?(:unit_code)
end