# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/shopping/merchant/products/v1beta/products.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/shopping/merchant/products/v1beta/products_common_pb' require 'google/shopping/type/types_pb' descriptor_data = "\n7google/shopping/merchant/products/v1beta/products.proto\x12(google.shopping.merchant.products.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a>google/shopping/merchant/products/v1beta/products_common.proto\x1a google/shopping/type/types.proto\"\xb2\x04\n\x07Product\x12\x0c\n\x04name\x18\x01 \x01(\t\x12?\n\x07\x63hannel\x18\x02 \x01(\x0e\x32).google.shopping.type.Channel.ChannelEnumB\x03\xe0\x41\x03\x12\x15\n\x08offer_id\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x63ontent_language\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nfeed_label\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x61ta_source\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12 \n\x0eversion_number\x18\x07 \x01(\x03\x42\x03\xe0\x41\x03H\x00\x88\x01\x01\x12M\n\nattributes\x18\x08 \x01(\x0b\x32\x34.google.shopping.merchant.products.v1beta.AttributesB\x03\xe0\x41\x03\x12\x45\n\x11\x63ustom_attributes\x18\t \x03(\x0b\x32%.google.shopping.type.CustomAttributeB\x03\xe0\x41\x03\x12T\n\x0eproduct_status\x18\n \x01(\x0b\x32\x37.google.shopping.merchant.products.v1beta.ProductStatusB\x03\xe0\x41\x03:N\xea\x41K\n\"merchantapi.googleapis.com/Product\x12%accounts/{account}/products/{product}B\x11\n\x0f_version_number\"M\n\x11GetProductRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Product\"x\n\x13ListProductsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"merchantapi.googleapis.com/Product\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"t\n\x14ListProductsResponse\x12\x43\n\x08products\x18\x01 \x03(\x0b\x32\x31.google.shopping.merchant.products.v1beta.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xe7\x03\n\x0fProductsService\x12\xba\x01\n\nGetProduct\x12;.google.shopping.merchant.products.v1beta.GetProductRequest\x1a\x31.google.shopping.merchant.products.v1beta.Product\"<\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/products/v1beta/{name=accounts/*/products/*}\x12\xcd\x01\n\x0cListProducts\x12=.google.shopping.merchant.products.v1beta.ListProductsRequest\x1a>.google.shopping.merchant.products.v1beta.ListProductsResponse\">\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/products/v1beta/{parent=accounts/*}/products\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xca\x01\n,com.google.shopping.merchant.products.v1betaB\rProductsProtoP\x01ZNcloud.google.com/go/shopping/merchant/products/apiv1beta/productspb;productspb\xea\x41\x38\n\"merchantapi.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}b\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.products.v1beta.Attributes", "google/shopping/merchant/products/v1beta/products_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 Products module V1beta Product = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.products.v1beta.Product").msgclass GetProductRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.products.v1beta.GetProductRequest").msgclass ListProductsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.products.v1beta.ListProductsRequest").msgclass ListProductsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.products.v1beta.ListProductsResponse").msgclass end end end end end