# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/capacityplanner/v1beta/future_reservation.proto

require 'google/protobuf'

require 'google/cloud/capacityplanner/v1beta/allocation_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\n<google/cloud/capacityplanner/v1beta/future_reservation.proto\x12#google.cloud.capacityplanner.v1beta\x1a\x34google/cloud/capacityplanner/v1beta/allocation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc1\x0b\n\x11\x46utureReservation\x12o\n\x17specific_sku_properties\x18\x08 \x01(\x0b\x32L.google.cloud.capacityplanner.v1beta.FutureReservation.SpecificSKUPropertiesH\x00\x12\n\n\x02id\x18\x01 \x01(\x03\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04zone\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x1a\n\x12\x66uture_reservation\x18\x07 \x01(\t\x12\x18\n\x10owner_project_id\x18\x0f \x01(\t\x12V\n\x0btime_window\x18\t \x01(\x0b\x32\x41.google.cloud.capacityplanner.v1beta.FutureReservation.TimeWindow\x12U\n\x0eshare_settings\x18\n \x01(\x0b\x32=.google.cloud.capacityplanner.v1beta.Allocation.ShareSettings\x12\x13\n\x0bname_prefix\x18\x0b \x01(\t\x12M\n\x06status\x18\x0c \x01(\x0b\x32=.google.cloud.capacityplanner.v1beta.FutureReservation.Status\x12I\n%auto_created_reservations_delete_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n%auto_delete_auto_created_reservations\x18\x0e \x01(\x08\x1a\xac\x01\n\x15SpecificSKUProperties\x12~\n\x13instance_properties\x18\x01 \x01(\x0b\x32\x61.google.cloud.capacityplanner.v1beta.Allocation.SpecificSKUAllocation.AllocatedInstanceProperties\x12\x13\n\x0btotal_count\x18\x02 \x01(\x03\x1aj\n\nTimeWindow\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a\xf4\x03\n\x06Status\x12k\n\x12procurement_status\x18\x01 \x01(\x0e\x32O.google.cloud.capacityplanner.v1beta.FutureReservation.Status.ProcurementStatus\x12-\n\tlock_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12!\n\x19\x61uto_created_reservations\x18\x03 \x03(\t\x12\x17\n\x0f\x66ulfilled_count\x18\x04 \x01(\x03\"\x91\x02\n\x11ProcurementStatus\x12\"\n\x1ePROCUREMENT_STATUS_UNSPECIFIED\x10\x00\x12\x14\n\x10PENDING_APPROVAL\x10\x01\x12\x0c\n\x08\x41PPROVED\x10\x02\x12\r\n\tCOMMITTED\x10\x03\x12\x0c\n\x08\x44\x45\x43LINED\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\r\n\tPROCURING\x10\x06\x12\x10\n\x0cPROVISIONING\x10\x07\x12\r\n\tFULFILLED\x10\x08\x12\n\n\x06\x46\x41ILED\x10\t\x12\x1e\n\x1a\x46\x41ILED_PARTIALLY_FULFILLED\x10\n\x12\x0c\n\x08\x44RAFTING\x10\x0b\x12\x1e\n\x1aPENDING_AMENDMENT_APPROVAL\x10\x0c\x42\x06\n\x04typeB\x8b\x02\n\'com.google.cloud.capacityplanner.v1betaB\x16\x46utureReservationProtoP\x01ZQcloud.google.com/go/capacityplanner/apiv1beta/capacityplannerpb;capacityplannerpb\xaa\x02#Google.Cloud.CapacityPlanner.V1Beta\xca\x02#Google\\Cloud\\CapacityPlanner\\V1beta\xea\x02&Google::Cloud::CapacityPlanner::V1betab\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.Timestamp", "google/protobuf/timestamp.proto"],
    ["google.cloud.capacityplanner.v1beta.Allocation.ShareSettings", "google/cloud/capacityplanner/v1beta/allocation.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 CapacityPlanner
      module V1beta
        FutureReservation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.FutureReservation").msgclass
        FutureReservation::SpecificSKUProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.FutureReservation.SpecificSKUProperties").msgclass
        FutureReservation::TimeWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.FutureReservation.TimeWindow").msgclass
        FutureReservation::Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.FutureReservation.Status").msgclass
        FutureReservation::Status::ProcurementStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.capacityplanner.v1beta.FutureReservation.Status.ProcurementStatus").enummodule
      end
    end
  end
end
