lib/google/shopping/merchant/accounts/v1/termsofservice_pb.rb
# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/shopping/merchant/accounts/v1/termsofservice.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/accounts/v1/termsofserviceagreementstate_pb' require 'google/shopping/merchant/accounts/v1/termsofservicekind_pb' descriptor_data = "\n9google/shopping/merchant/accounts/v1/termsofservice.proto\x12$google.shopping.merchant.accounts.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1aGgoogle/shopping/merchant/accounts/v1/termsofserviceagreementstate.proto\x1a=google/shopping/merchant/accounts/v1/termsofservicekind.proto\"\xae\x02\n\x0eTermsOfService\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x08\xfa\x41+\n)merchantapi.googleapis.com/TermsOfService\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12\x46\n\x04kind\x18\x03 \x01(\x0e\x32\x38.google.shopping.merchant.accounts.v1.TermsOfServiceKind\x12\x15\n\x08\x66ile_uri\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x10\n\x08\x65xternal\x18\x05 \x01(\x08:H\xea\x41\x45\n)merchantapi.googleapis.com/TermsOfService\x12\x18termsOfService/{version}B\x0b\n\t_file_uri\"[\n\x18GetTermsOfServiceRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)merchantapi.googleapis.com/TermsOfService\"\x8c\x01\n#RetrieveLatestTermsOfServiceRequest\x12\x18\n\x0bregion_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12K\n\x04kind\x18\x02 \x01(\x0e\x32\x38.google.shopping.merchant.accounts.v1.TermsOfServiceKindB\x03\xe0\x41\x02\"\xb5\x01\n\x1b\x41\x63\x63\x65ptTermsOfServiceRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)merchantapi.googleapis.com/TermsOfService\x12;\n\x07\x61\x63\x63ount\x18\x02 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12\x18\n\x0bregion_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\x8c\x01\n\x1c\x41\x63\x63\x65ptTermsOfServiceResponse\x12l\n terms_of_service_agreement_state\x18\x01 \x01(\x0b\x32\x42.google.shopping.merchant.accounts.v1.TermsOfServiceAgreementState2\xd3\x05\n\x15TermsOfServiceService\x12\xbe\x01\n\x11GetTermsOfService\x12>.google.shopping.merchant.accounts.v1.GetTermsOfServiceRequest\x1a\x34.google.shopping.merchant.accounts.v1.TermsOfService\"3\xda\x41\x04name\x82\xd3\xe4\x93\x02&\x12$/accounts/v1/{name=termsOfService/*}\x12\xd3\x01\n\x1cRetrieveLatestTermsOfService\x12I.google.shopping.merchant.accounts.v1.RetrieveLatestTermsOfServiceRequest\x1a\x34.google.shopping.merchant.accounts.v1.TermsOfService\"2\x82\xd3\xe4\x93\x02,\x12*/accounts/v1/termsOfService:retrieveLatest\x12\xd9\x01\n\x14\x41\x63\x63\x65ptTermsOfService\x12\x41.google.shopping.merchant.accounts.v1.AcceptTermsOfServiceRequest\x1a\x42.google.shopping.merchant.accounts.v1.AcceptTermsOfServiceResponse\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\"+/accounts/v1/{name=termsOfService/*}:accept\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x86\x02\n(com.google.shopping.merchant.accounts.v1B\x13TermsOfServiceProtoP\x01ZJcloud.google.com/go/shopping/merchant/accounts/apiv1/accountspb;accountspb\xaa\x02$Google.Shopping.Merchant.Accounts.V1\xca\x02$Google\\Shopping\\Merchant\\Accounts\\V1\xea\x02(Google::Shopping::Merchant::Accounts::V1b\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.accounts.v1.TermsOfServiceAgreementState", "google/shopping/merchant/accounts/v1/termsofserviceagreementstate.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 Accounts module V1 TermsOfService = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.TermsOfService").msgclass GetTermsOfServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.GetTermsOfServiceRequest").msgclass RetrieveLatestTermsOfServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.RetrieveLatestTermsOfServiceRequest").msgclass AcceptTermsOfServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.AcceptTermsOfServiceRequest").msgclass AcceptTermsOfServiceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.AcceptTermsOfServiceResponse").msgclass end end end end end