# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/commerce/consumer/procurement/v1/procurement_service.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/cloud/commerce/consumer/procurement/v1/order_pb' require 'google/longrunning/operations_pb' descriptor_data = "\nGgoogle/cloud/commerce/consumer/procurement/v1/procurement_service.proto\x12-google.cloud.commerce.consumer.procurement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x39google/cloud/commerce/consumer/procurement/v1/order.proto\x1a#google/longrunning/operations.proto\"\xe5\x01\n\x11PlaceOrderRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12\x19\n\x0c\x64isplay_name\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12X\n\x0eline_item_info\x18\n \x03(\x0b\x32;.google.cloud.commerce.consumer.procurement.v1.LineItemInfoB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\x14\n\x12PlaceOrderMetadata\"$\n\x0fGetOrderRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"_\n\x11ListOrdersRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"s\n\x12ListOrdersResponse\x12\x44\n\x06orders\x18\x01 \x03(\x0b\x32\x34.google.cloud.commerce.consumer.procurement.v1.Order\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xcc\x05\n\x1a\x43onsumerProcurementService\x12\xc3\x01\n\nPlaceOrder\x12@.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest\x1a\x1d.google.longrunning.Operation\"T\x82\xd3\xe4\x93\x02\x30\"+/v1/{parent=billingAccounts/*}/orders:place:\x01*\xca\x41\x1b\n\x05Order\x12\x12PlaceOrderMetadata\x12\xb6\x01\n\x08GetOrder\x12>.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest\x1a\x34.google.cloud.commerce.consumer.procurement.v1.Order\"4\x82\xd3\xe4\x93\x02\'\x12%/v1/{name=billingAccounts/*/orders/*}\xda\x41\x04name\x12\xc9\x01\n\nListOrders\x12@.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest\x1a\x41.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse\"6\x82\xd3\xe4\x93\x02\'\x12%/v1/{parent=billingAccounts/*}/orders\xda\x41\x06parent\x1a\x63\xca\x41/cloudcommerceconsumerprocurement.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9f\x02\n1com.google.cloud.commerce.consumer.procurement.v1P\x01ZScloud.google.com/go/commerce/consumer/procurement/apiv1/procurementpb;procurementpb\xaa\x02-Google.Cloud.Commerce.Consumer.Procurement.V1\xca\x02-Google\\Cloud\\Commerce\\Consumer\\Procurement\\V1\xea\x02\x32Google::Cloud::Commerce::Consumer::Procurement::V1b\x06proto3" pool = Google::Protobuf::DescriptorPool.generated_pool begin pool.add_serialized_file(descriptor_data) rescue TypeError => e # 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.cloud.commerce.consumer.procurement.v1.LineItemInfo", "google/cloud/commerce/consumer/procurement/v1/order.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 Cloud module Commerce module Consumer module Procurement module V1 PlaceOrderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest").msgclass PlaceOrderMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.PlaceOrderMetadata").msgclass GetOrderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.GetOrderRequest").msgclass ListOrdersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest").msgclass ListOrdersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse").msgclass end end end end end end