# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/commerce/consumer/procurement/v1/license_management_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/protobuf/duration_pb'
require 'google/protobuf/field_mask_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\nNgoogle/cloud/commerce/consumer/procurement/v1/license_management_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\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x83\x03\n\x12\x41ssignmentProtocol\x12x\n\x16manual_assignment_type\x18\x02 \x01(\x0b\x32V.google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.ManualAssignmentTypeH\x00\x12t\n\x14\x61uto_assignment_type\x18\x03 \x01(\x0b\x32T.google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.AutoAssignmentTypeH\x00\x1a\x16\n\x14ManualAssignmentType\x1aR\n\x12\x41utoAssignmentType\x12<\n\x14inactive_license_ttl\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x42\x11\n\x0f\x61ssignment_type\"\xf2\x02\n\x0bLicensePool\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12k\n\x1blicense_assignment_protocol\x18\x02 \x01(\x0b\x32\x41.google.cloud.commerce.consumer.procurement.v1.AssignmentProtocolB\x03\xe0\x41\x02\x12$\n\x17\x61vailable_license_count\x18\x03 \x01(\x05\x42\x03\xe0\x41\x03\x12 \n\x13total_license_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03:\x9a\x01\xea\x41\x96\x01\n;cloudcommerceconsumerprocurement.googleapis.com/LicensePool\x12<billingAccounts/{billing_account}/orders/{order}/licensePool*\x0clicensePools2\x0blicensePool\"*\n\x15GetLicensePoolRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xa7\x01\n\x18UpdateLicensePoolRequest\x12U\n\x0clicense_pool\x18\x01 \x01(\x0b\x32:.google.cloud.commerce.consumer.procurement.v1.LicensePoolB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"<\n\rAssignRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tusernames\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\x10\n\x0e\x41ssignResponse\">\n\x0fUnassignRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tusernames\x18\x02 \x03(\tB\x03\xe0\x41\x02\"\x12\n\x10UnassignResponse\"e\n\x1d\x45numerateLicensedUsersRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\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\"\x92\x01\n\x0cLicensedUser\x12\x10\n\x08username\x18\x01 \x01(\t\x12\x34\n\x0b\x61ssign_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12:\n\x11recent_usage_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\"\x8e\x01\n\x1e\x45numerateLicensedUsersResponse\x12S\n\x0elicensed_users\x18\x01 \x03(\x0b\x32;.google.cloud.commerce.consumer.procurement.v1.LicensedUser\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xc3\n\n\x18LicenseManagementService\x12\xd4\x01\n\x0eGetLicensePool\x12\x44.google.cloud.commerce.consumer.procurement.v1.GetLicensePoolRequest\x1a:.google.cloud.commerce.consumer.procurement.v1.LicensePool\"@\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{name=billingAccounts/*/orders/*/licensePool}\x12\x89\x02\n\x11UpdateLicensePool\x12G.google.cloud.commerce.consumer.procurement.v1.UpdateLicensePoolRequest\x1a:.google.cloud.commerce.consumer.procurement.v1.LicensePool\"o\xda\x41\x18license_pool,update_mask\x82\xd3\xe4\x93\x02N2>/v1/{license_pool.name=billingAccounts/*/orders/*/licensePool}:\x0clicense_pool\x12\xdf\x01\n\x06\x41ssign\x12<.google.cloud.commerce.consumer.procurement.v1.AssignRequest\x1a=.google.cloud.commerce.consumer.procurement.v1.AssignResponse\"X\xda\x41\x10parent,usernames\x82\xd3\xe4\x93\x02?\":/v1/{parent=billingAccounts/*/orders/*/licensePool}:assign:\x01*\x12\xe7\x01\n\x08Unassign\x12>.google.cloud.commerce.consumer.procurement.v1.UnassignRequest\x1a?.google.cloud.commerce.consumer.procurement.v1.UnassignResponse\"Z\xda\x41\x10parent,usernames\x82\xd3\xe4\x93\x02\x41\"</v1/{parent=billingAccounts/*/orders/*/licensePool}:unassign:\x01*\x12\x92\x02\n\x16\x45numerateLicensedUsers\x12L.google.cloud.commerce.consumer.procurement.v1.EnumerateLicensedUsersRequest\x1aM.google.cloud.commerce.consumer.procurement.v1.EnumerateLicensedUsersResponse\"[\xda\x41\x06parent\x82\xd3\xe4\x93\x02L\x12J/v1/{parent=billingAccounts/*/orders/*/licensePool}:enumerateLicensedUsers\x1a\x63\xca\x41/cloudcommerceconsumerprocurement.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xbe\x02\n1com.google.cloud.commerce.consumer.procurement.v1B\x1dLicenseManagementServiceProtoP\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.protobuf.Duration", "google/protobuf/duration.proto"],
    ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
    ["google.protobuf.Timestamp", "google/protobuf/timestamp.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
            AssignmentProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol").msgclass
            AssignmentProtocol::ManualAssignmentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.ManualAssignmentType").msgclass
            AssignmentProtocol::AutoAssignmentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.AssignmentProtocol.AutoAssignmentType").msgclass
            LicensePool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.LicensePool").msgclass
            GetLicensePoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.GetLicensePoolRequest").msgclass
            UpdateLicensePoolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.UpdateLicensePoolRequest").msgclass
            AssignRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.AssignRequest").msgclass
            AssignResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.AssignResponse").msgclass
            UnassignRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.UnassignRequest").msgclass
            UnassignResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.UnassignResponse").msgclass
            EnumerateLicensedUsersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.EnumerateLicensedUsersRequest").msgclass
            LicensedUser = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.LicensedUser").msgclass
            EnumerateLicensedUsersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.EnumerateLicensedUsersResponse").msgclass
          end
        end
      end
    end
  end
end
