Class: Google::Apis::MerchantapiReviewsV1beta::ProductReviewAttributes

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

Overview

Attributes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductReviewAttributes

Returns a new instance of ProductReviewAttributes.



693
694
695
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 693

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

Instance Attribute Details

#aggregator_nameString

Optional. The name of the aggregator of the product reviews. A publisher may use a reviews aggregator to manage reviews and provide the feeds. This element indicates the use of an aggregator and contains information about the aggregator. Corresponds to the JSON property aggregatorName

Returns:

  • (String)


529
530
531
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 529

def aggregator_name
  @aggregator_name
end

#asinsArray<String>

Optional. Contains ASINs (Amazon Standard Identification Numbers) associated with a product. Corresponds to the JSON property asins

Returns:

  • (Array<String>)


535
536
537
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 535

def asins
  @asins
end

#brandsArray<String>

Optional. Contains brand names associated with a product. Corresponds to the JSON property brands

Returns:

  • (Array<String>)


540
541
542
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 540

def brands
  @brands
end

#collection_methodString

Optional. The method used to collect the review. Corresponds to the JSON property collectionMethod

Returns:

  • (String)


545
546
547
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 545

def collection_method
  @collection_method
end

#consArray<String>

Optional. Contains the disadvantages based on the opinion of the reviewer. Omit boilerplate text like "con:" unless it was written by the reviewer. Corresponds to the JSON property cons

Returns:

  • (Array<String>)


551
552
553
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 551

def cons
  @cons
end

#contentString

Required. The content of the review. Corresponds to the JSON property content

Returns:

  • (String)


556
557
558
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 556

def content
  @content
end

#gtinsArray<String>

Optional. Contains GTINs (global trade item numbers) associated with a product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported. Corresponds to the JSON property gtins

Returns:

  • (Array<String>)


562
563
564
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 562

def gtins
  @gtins
end

#is_spamBoolean Also known as: is_spam?

Optional. Indicates whether the review is marked as spam in the publisher's system. Corresponds to the JSON property isSpam

Returns:

  • (Boolean)


568
569
570
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 568

def is_spam
  @is_spam
end

#max_ratingFixnum

Optional. The maximum possible number for the rating. The value of the max rating must be greater than the value of the min attribute. Corresponds to the JSON property maxRating

Returns:

  • (Fixnum)


575
576
577
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 575

def max_rating
  @max_rating
end

#min_ratingFixnum

Optional. Contains the ratings associated with the review. The minimum possible number for the rating. This should be the worst possible rating and should not be a value for no rating. Corresponds to the JSON property minRating

Returns:

  • (Fixnum)


582
583
584
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 582

def min_rating
  @min_rating
end

#mpnsArray<String>

Optional. Contains MPNs (manufacturer part numbers) associated with a product. Corresponds to the JSON property mpns

Returns:

  • (Array<String>)


587
588
589
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 587

def mpns
  @mpns
end

Optional. The URI of the product. This URI can have the same value as the review_link element, if the review URI and the product URI are the same. Corresponds to the JSON property productLinks

Returns:

  • (Array<String>)


593
594
595
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 593

def product_links
  @product_links
end

#product_namesArray<String>

Optional. Descriptive name of a product. Corresponds to the JSON property productNames

Returns:

  • (Array<String>)


598
599
600
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 598

def product_names
  @product_names
end

#prosArray<String>

Optional. Contains the advantages based on the opinion of the reviewer. Omit boilerplate text like "pro:" unless it was written by the reviewer. Corresponds to the JSON property pros

Returns:

  • (Array<String>)


604
605
606
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 604

def pros
  @pros
end

#publisher_faviconString

Optional. A link to the company favicon of the publisher. The image dimensions should be favicon size: 16x16 pixels. The image format should be GIF, JPG or PNG. Corresponds to the JSON property publisherFavicon

Returns:

  • (String)


611
612
613
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 611

def publisher_favicon
  @publisher_favicon
end

#publisher_nameString

Optional. The name of the publisher of the product reviews. The information about the publisher, which may be a retailer, manufacturer, reviews service company, or any entity that publishes product reviews. Corresponds to the JSON property publisherName

Returns:

  • (String)


618
619
620
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 618

def publisher_name
  @publisher_name
end

#ratingFloat

Optional. The reviewer's overall rating of the product. Corresponds to the JSON property rating

Returns:

  • (Float)


623
624
625
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 623

def rating
  @rating
end

#review_countryString

Optional. The country of the review defined by ISO 3166-1 Alpha-2 Country Code. Corresponds to the JSON property reviewCountry

Returns:

  • (String)


628
629
630
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 628

def review_country
  @review_country
end

#review_languageString

Optional. The language of the review defined by BCP-47 language code. Corresponds to the JSON property reviewLanguage

Returns:

  • (String)


633
634
635
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 633

def review_language
  @review_language
end

The URI of the review landing page. Corresponds to the JSON property reviewLink



638
639
640
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 638

def review_link
  @review_link
end

#review_timeString

Required. The timestamp indicating when the review was written. Corresponds to the JSON property reviewTime

Returns:

  • (String)


643
644
645
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 643

def review_time
  @review_time
end

#reviewer_idString

Optional. The author of the product review. A permanent, unique identifier for the author of the review in the publisher's system. Corresponds to the JSON property reviewerId

Returns:

  • (String)


649
650
651
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 649

def reviewer_id
  @reviewer_id
end

Optional. A URI to an image of the reviewed product created by the review author. The URI does not have to end with an image file extension. Corresponds to the JSON property reviewerImageLinks

Returns:

  • (Array<String>)


655
656
657
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 655

def reviewer_image_links
  @reviewer_image_links
end

#reviewer_is_anonymousBoolean Also known as: reviewer_is_anonymous?

Optional. Set to true if the reviewer should remain anonymous. Corresponds to the JSON property reviewerIsAnonymous

Returns:

  • (Boolean)


660
661
662
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 660

def reviewer_is_anonymous
  @reviewer_is_anonymous
end

#reviewer_usernameString

Optional. The name of the reviewer of the product review. Corresponds to the JSON property reviewerUsername

Returns:

  • (String)


666
667
668
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 666

def reviewer_username
  @reviewer_username
end

#skusArray<String>

Optional. Contains SKUs (stock keeping units) associated with a product. Often this matches the product Offer Id in the product feed. Corresponds to the JSON property skus

Returns:

  • (Array<String>)


672
673
674
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 672

def skus
  @skus
end

#subclient_nameString

Optional. The name of the subclient of the product reviews. The subclient is an identifier of the product review source. It should be equivalent to the directory provided in the file data source path. Corresponds to the JSON property subclientName

Returns:

  • (String)


679
680
681
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 679

def subclient_name
  @subclient_name
end

#titleString

Optional. The title of the review. Corresponds to the JSON property title

Returns:

  • (String)


684
685
686
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 684

def title
  @title
end

#transaction_idString

Optional. A permanent, unique identifier for the transaction associated with the review in the publisher's system. This ID can be used to indicate that multiple reviews are associated with the same transaction. Corresponds to the JSON property transactionId

Returns:

  • (String)


691
692
693
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 691

def transaction_id
  @transaction_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 698

def update!(**args)
  @aggregator_name = args[:aggregator_name] if args.key?(:aggregator_name)
  @asins = args[:asins] if args.key?(:asins)
  @brands = args[:brands] if args.key?(:brands)
  @collection_method = args[:collection_method] if args.key?(:collection_method)
  @cons = args[:cons] if args.key?(:cons)
  @content = args[:content] if args.key?(:content)
  @gtins = args[:gtins] if args.key?(:gtins)
  @is_spam = args[:is_spam] if args.key?(:is_spam)
  @max_rating = args[:max_rating] if args.key?(:max_rating)
  @min_rating = args[:min_rating] if args.key?(:min_rating)
  @mpns = args[:mpns] if args.key?(:mpns)
  @product_links = args[:product_links] if args.key?(:product_links)
  @product_names = args[:product_names] if args.key?(:product_names)
  @pros = args[:pros] if args.key?(:pros)
  @publisher_favicon = args[:publisher_favicon] if args.key?(:publisher_favicon)
  @publisher_name = args[:publisher_name] if args.key?(:publisher_name)
  @rating = args[:rating] if args.key?(:rating)
  @review_country = args[:review_country] if args.key?(:review_country)
  @review_language = args[:review_language] if args.key?(:review_language)
  @review_link = args[:review_link] if args.key?(:review_link)
  @review_time = args[:review_time] if args.key?(:review_time)
  @reviewer_id = args[:reviewer_id] if args.key?(:reviewer_id)
  @reviewer_image_links = args[:reviewer_image_links] if args.key?(:reviewer_image_links)
  @reviewer_is_anonymous = args[:reviewer_is_anonymous] if args.key?(:reviewer_is_anonymous)
  @reviewer_username = args[:reviewer_username] if args.key?(:reviewer_username)
  @skus = args[:skus] if args.key?(:skus)
  @subclient_name = args[:subclient_name] if args.key?(:subclient_name)
  @title = args[:title] if args.key?(:title)
  @transaction_id = args[:transaction_id] if args.key?(:transaction_id)
end