# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/shopping/merchant/reviews/v1beta/productreviews.proto

require 'google/protobuf'

require 'google/api/annotations_pb'
require 'google/api/client_pb'
require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/protobuf/empty_pb'
require 'google/shopping/merchant/reviews/v1beta/productreviews_common_pb'
require 'google/shopping/type/types_pb'


descriptor_data = "\n<google/shopping/merchant/reviews/v1beta/productreviews.proto\x12\'google.shopping.merchant.reviews.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x43google/shopping/merchant/reviews/v1beta/productreviews_common.proto\x1a google/shopping/type/types.proto\"Y\n\x17GetProductReviewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(merchantapi.googleapis.com/ProductReview\"\\\n\x1a\x44\x65leteProductReviewRequest\x12>\n\x04name\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\n(merchantapi.googleapis.com/ProductReview\"\x8e\x01\n\x19ListProductReviewsRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xe0\x41\x02\xfa\x41*\x12(merchantapi.googleapis.com/ProductReview\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xa0\x01\n\x1aInsertProductReviewRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12S\n\x0eproduct_review\x18\x02 \x01(\x0b\x32\x36.google.shopping.merchant.reviews.v1beta.ProductReviewB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x61ta_source\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x86\x01\n\x1aListProductReviewsResponse\x12O\n\x0fproduct_reviews\x18\x01 \x03(\x0b\x32\x36.google.shopping.merchant.reviews.v1beta.ProductReview\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xf0\x03\n\rProductReview\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x11product_review_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12h\n\x19product_review_attributes\x18\x03 \x01(\x0b\x32@.google.shopping.merchant.reviews.v1beta.ProductReviewAttributesB\x03\xe0\x41\x01\x12\x45\n\x11\x63ustom_attributes\x18\x04 \x03(\x0b\x32%.google.shopping.type.CustomAttributeB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x61ta_source\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12`\n\x15product_review_status\x18\x06 \x01(\x0b\x32<.google.shopping.merchant.reviews.v1beta.ProductReviewStatusB\x03\xe0\x41\x03:\x7f\xea\x41|\n(merchantapi.googleapis.com/ProductReview\x12\x31\x61\x63\x63ounts/{account}/productReviews/{productreview}*\x0eproductReviews2\rproductReview2\xb7\x07\n\x15ProductReviewsService\x12\xcf\x01\n\x10GetProductReview\x12@.google.shopping.merchant.reviews.v1beta.GetProductReviewRequest\x1a\x36.google.shopping.merchant.reviews.v1beta.ProductReview\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/reviews/v1beta/{name=accounts/*/productReviews/*}\x12\xe2\x01\n\x12ListProductReviews\x12\x42.google.shopping.merchant.reviews.v1beta.ListProductReviewsRequest\x1a\x43.google.shopping.merchant.reviews.v1beta.ListProductReviewsResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/reviews/v1beta/{parent=accounts/*}/productReviews\x12\xe5\x01\n\x13InsertProductReview\x12\x43.google.shopping.merchant.reviews.v1beta.InsertProductReviewRequest\x1a\x36.google.shopping.merchant.reviews.v1beta.ProductReview\"Q\x82\xd3\xe4\x93\x02K\"9/reviews/v1beta/{parent=accounts/*}/productReviews:insert:\x0eproduct_review\x12\xb5\x01\n\x13\x44\x65leteProductReview\x12\x43.google.shopping.merchant.reviews.v1beta.DeleteProductReviewRequest\x1a\x16.google.protobuf.Empty\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34*2/reviews/v1beta/{name=accounts/*/productReviews/*}\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x93\x02\n+com.google.shopping.merchant.reviews.v1betaB\x13ProductReviewsProtoP\x01ZKcloud.google.com/go/shopping/merchant/reviews/apiv1beta/reviewspb;reviewspb\xaa\x02\'Google.Shopping.Merchant.Reviews.V1Beta\xca\x02\'Google\\Shopping\\Merchant\\Reviews\\V1beta\xea\x02+Google::Shopping::Merchant::Reviews::V1betab\x06proto3"

pool = Google::Protobuf::DescriptorPool.generated_pool

begin
  pool.add_serialized_file(descriptor_data)
rescue TypeError
  # Compatibility code: will be removed in the next major version.
  require 'google/protobuf/descriptor_pb'
  parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
  parsed.clear_dependency
  serialized = parsed.class.encode(parsed)
  file = pool.add_serialized_file(serialized)
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
  imports = [
    ["google.shopping.merchant.reviews.v1beta.ProductReviewAttributes", "google/shopping/merchant/reviews/v1beta/productreviews_common.proto"],
    ["google.shopping.type.CustomAttribute", "google/shopping/type/types.proto"],
  ]
  imports.each do |type_name, expected_filename|
    import_file = pool.lookup(type_name).file_descriptor
    if import_file.name != expected_filename
      warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
    end
  end
  warn "Each proto file must use a consistent fully-qualified name."
  warn "This will become an error in the next major version."
end

module Google
  module Shopping
    module Merchant
      module Reviews
        module V1beta
          GetProductReviewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.reviews.v1beta.GetProductReviewRequest").msgclass
          DeleteProductReviewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.reviews.v1beta.DeleteProductReviewRequest").msgclass
          ListProductReviewsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.reviews.v1beta.ListProductReviewsRequest").msgclass
          InsertProductReviewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.reviews.v1beta.InsertProductReviewRequest").msgclass
          ListProductReviewsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.reviews.v1beta.ListProductReviewsResponse").msgclass
          ProductReview = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.reviews.v1beta.ProductReview").msgclass
        end
      end
    end
  end
end
