# 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(\t\"\x90\x04\n\x12ModifyOrderRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12j\n\rmodifications\x18\x06 \x03(\x0b\x32N.google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.ModificationB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x04 \x01(\tB\x03\xe0\x41\x01\x1a\xcc\x02\n\x0cModification\x12\x19\n\x0cline_item_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12[\n\x0b\x63hange_type\x18\x02 \x01(\x0e\x32\x41.google.cloud.commerce.consumer.procurement.v1.LineItemChangeTypeB\x03\xe0\x41\x02\x12\\\n\x12new_line_item_info\x18\x03 \x01(\x0b\x32;.google.cloud.commerce.consumer.procurement.v1.LineItemInfoB\x03\xe0\x41\x01\x12\x66\n\x15\x61uto_renewal_behavior\x18\x04 \x01(\x0e\x32\x42.google.cloud.commerce.consumer.procurement.v1.AutoRenewalBehaviorB\x03\xe0\x41\x01\"\x15\n\x13ModifyOrderMetadata\"\xc6\x02\n\x12\x43\x61ncelOrderRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12v\n\x13\x63\x61ncellation_policy\x18\x03 \x01(\x0e\x32T.google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicyB\x03\xe0\x41\x01\"\x91\x01\n\x12\x43\x61ncellationPolicy\x12#\n\x1f\x43\x41NCELLATION_POLICY_UNSPECIFIED\x10\x00\x12*\n&CANCELLATION_POLICY_CANCEL_IMMEDIATELY\x10\x01\x12*\n&CANCELLATION_POLICY_CANCEL_AT_TERM_END\x10\x02\"\x15\n\x13\x43\x61ncelOrderMetadata*\x81\x01\n\x13\x41utoRenewalBehavior\x12%\n!AUTO_RENEWAL_BEHAVIOR_UNSPECIFIED\x10\x00\x12 \n\x1c\x41UTO_RENEWAL_BEHAVIOR_ENABLE\x10\x01\x12!\n\x1d\x41UTO_RENEWAL_BEHAVIOR_DISABLE\x10\x02\x32\xe0\x08\n\x1a\x43onsumerProcurementService\x12\xc3\x01\n\nPlaceOrder\x12@.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest\x1a\x1d.google.longrunning.Operation\"T\xca\x41\x1b\n\x05Order\x12\x12PlaceOrderMetadata\x82\xd3\xe4\x93\x02\x30\"+/v1/{parent=billingAccounts/*}/orders:place:\x01*\x12\xb6\x01\n\x08GetOrder\x12>.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest\x1a\x34.google.cloud.commerce.consumer.procurement.v1.Order\"4\xda\x41\x04name\x82\xd3\xe4\x93\x02\'\x12%/v1/{name=billingAccounts/*/orders/*}\x12\xc9\x01\n\nListOrders\x12@.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest\x1a\x41.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse\"6\xda\x41\x06parent\x82\xd3\xe4\x93\x02\'\x12%/v1/{parent=billingAccounts/*}/orders\x12\xc7\x01\n\x0bModifyOrder\x12\x41.google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest\x1a\x1d.google.longrunning.Operation\"V\xca\x41\x1c\n\x05Order\x12\x13ModifyOrderMetadata\x82\xd3\xe4\x93\x02\x31\",/v1/{name=billingAccounts/*/orders/*}:modify:\x01*\x12\xc7\x01\n\x0b\x43\x61ncelOrder\x12\x41.google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest\x1a\x1d.google.longrunning.Operation\"V\xca\x41\x1c\n\x05Order\x12\x13\x43\x61ncelOrderMetadata\x82\xd3\xe4\x93\x02\x31\",/v1/{name=billingAccounts/*/orders/*}:cancel:\x01*\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
  # 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
            ModifyOrderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest").msgclass
            ModifyOrderRequest::Modification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification").msgclass
            ModifyOrderMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.ModifyOrderMetadata").msgclass
            CancelOrderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest").msgclass
            CancelOrderRequest::CancellationPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy").enummodule
            CancelOrderMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.CancelOrderMetadata").msgclass
            AutoRenewalBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.AutoRenewalBehavior").enummodule
          end
        end
      end
    end
  end
end
