# frozen_string_literal: true
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/osconfig/v1/os_policy_assignments.proto

require 'google/protobuf'

require 'google/api/field_behavior_pb'
require 'google/api/resource_pb'
require 'google/cloud/osconfig/v1/os_policy_pb'
require 'google/cloud/osconfig/v1/osconfig_common_pb'
require 'google/protobuf/duration_pb'
require 'google/protobuf/field_mask_pb'
require 'google/protobuf/timestamp_pb'


descriptor_data = "\n4google/cloud/osconfig/v1/os_policy_assignments.proto\x12\x18google.cloud.osconfig.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/osconfig/v1/os_policy.proto\x1a.google/cloud/osconfig/v1/osconfig_common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa3\x0b\n\x12OSPolicyAssignment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12<\n\x0bos_policies\x18\x03 \x03(\x0b\x32\".google.cloud.osconfig.v1.OSPolicyB\x03\xe0\x41\x02\x12Y\n\x0finstance_filter\x18\x04 \x01(\x0b\x32;.google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilterB\x03\xe0\x41\x02\x12J\n\x07rollout\x18\x05 \x01(\x0b\x32\x34.google.cloud.osconfig.v1.OSPolicyAssignment.RolloutB\x03\xe0\x41\x02\x12\x18\n\x0brevision_id\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12=\n\x14revision_create_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x0c\n\x04\x65tag\x18\x08 \x01(\t\x12U\n\rrollout_state\x18\t \x01(\x0e\x32\x39.google.cloud.osconfig.v1.OSPolicyAssignment.RolloutStateB\x03\xe0\x41\x03\x12\x15\n\x08\x62\x61seline\x18\n \x01(\x08\x42\x03\xe0\x41\x03\x12\x14\n\x07\x64\x65leted\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x0c \x01(\x08\x42\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\r \x01(\tB\x03\xe0\x41\x03\x1a\x8c\x01\n\x08LabelSet\x12Q\n\x06labels\x18\x01 \x03(\x0b\x32\x41.google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\xd8\x02\n\x0eInstanceFilter\x12\x0b\n\x03\x61ll\x18\x01 \x01(\x08\x12O\n\x10inclusion_labels\x18\x02 \x03(\x0b\x32\x35.google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet\x12O\n\x10\x65xclusion_labels\x18\x03 \x03(\x0b\x32\x35.google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet\x12Z\n\x0binventories\x18\x04 \x03(\x0b\x32\x45.google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory\x1a;\n\tInventory\x12\x1a\n\ros_short_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\nos_version\x18\x02 \x01(\t\x1a\x8e\x01\n\x07Rollout\x12H\n\x11\x64isruption_budget\x18\x01 \x01(\x0b\x32(.google.cloud.osconfig.v1.FixedOrPercentB\x03\xe0\x41\x02\x12\x39\n\x11min_wait_duration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\"l\n\x0cRolloutState\x12\x1d\n\x19ROLLOUT_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\x0e\n\nCANCELLING\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04:\x84\x01\xea\x41\x80\x01\n*osconfig.googleapis.com/OSPolicyAssignment\x12Rprojects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}\"\xe0\x04\n#OSPolicyAssignmentOperationMetadata\x12M\n\x14os_policy_assignment\x18\x01 \x01(\tB/\xfa\x41,\n*osconfig.googleapis.com/OSPolicyAssignment\x12[\n\napi_method\x18\x02 \x01(\x0e\x32G.google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod\x12\x61\n\rrollout_state\x18\x03 \x01(\x0e\x32J.google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState\x12\x36\n\x12rollout_start_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x13rollout_update_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"K\n\tAPIMethod\x12\x1a\n\x16\x41PI_METHOD_UNSPECIFIED\x10\x00\x12\n\n\x06\x43REATE\x10\x01\x12\n\n\x06UPDATE\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\"l\n\x0cRolloutState\x12\x1d\n\x19ROLLOUT_STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bIN_PROGRESS\x10\x01\x12\x0e\n\nCANCELLING\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\"\xd3\x01\n\x1f\x43reateOSPolicyAssignmentRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12O\n\x14os_policy_assignment\x18\x02 \x01(\x0b\x32,.google.cloud.osconfig.v1.OSPolicyAssignmentB\x03\xe0\x41\x02\x12$\n\x17os_policy_assignment_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xa8\x01\n\x1fUpdateOSPolicyAssignmentRequest\x12O\n\x14os_policy_assignment\x18\x01 \x01(\x0b\x32,.google.cloud.osconfig.v1.OSPolicyAssignmentB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"`\n\x1cGetOSPolicyAssignmentRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*osconfig.googleapis.com/OSPolicyAssignment\"\x82\x01\n\x1eListOSPolicyAssignmentsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x87\x01\n\x1fListOSPolicyAssignmentsResponse\x12K\n\x15os_policy_assignments\x18\x01 \x03(\x0b\x32,.google.cloud.osconfig.v1.OSPolicyAssignment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x91\x01\n&ListOSPolicyAssignmentRevisionsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*osconfig.googleapis.com/OSPolicyAssignment\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x8f\x01\n\'ListOSPolicyAssignmentRevisionsResponse\x12K\n\x15os_policy_assignments\x18\x01 \x03(\x0b\x32,.google.cloud.osconfig.v1.OSPolicyAssignment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"c\n\x1f\x44\x65leteOSPolicyAssignmentRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*osconfig.googleapis.com/OSPolicyAssignmentB\xc8\x01\n\x1c\x63om.google.cloud.osconfig.v1B\x18OsPolicyAssignmentsProtoP\x01Z8cloud.google.com/go/osconfig/apiv1/osconfigpb;osconfigpb\xaa\x02\x18Google.Cloud.OsConfig.V1\xca\x02\x18Google\\Cloud\\OsConfig\\V1\xea\x02\x1bGoogle::Cloud::OsConfig::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.osconfig.v1.OSPolicy", "google/cloud/osconfig/v1/os_policy.proto"],
    ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
    ["google.cloud.osconfig.v1.FixedOrPercent", "google/cloud/osconfig/v1/osconfig_common.proto"],
    ["google.protobuf.Duration", "google/protobuf/duration.proto"],
    ["google.protobuf.FieldMask", "google/protobuf/field_mask.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 OsConfig
      module V1
        OSPolicyAssignment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment").msgclass
        OSPolicyAssignment::LabelSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.LabelSet").msgclass
        OSPolicyAssignment::InstanceFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter").msgclass
        OSPolicyAssignment::InstanceFilter::Inventory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.InstanceFilter.Inventory").msgclass
        OSPolicyAssignment::Rollout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.Rollout").msgclass
        OSPolicyAssignment::RolloutState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignment.RolloutState").enummodule
        OSPolicyAssignmentOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata").msgclass
        OSPolicyAssignmentOperationMetadata::APIMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.APIMethod").enummodule
        OSPolicyAssignmentOperationMetadata::RolloutState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.OSPolicyAssignmentOperationMetadata.RolloutState").enummodule
        CreateOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.CreateOSPolicyAssignmentRequest").msgclass
        UpdateOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest").msgclass
        GetOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest").msgclass
        ListOSPolicyAssignmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentsRequest").msgclass
        ListOSPolicyAssignmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse").msgclass
        ListOSPolicyAssignmentRevisionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsRequest").msgclass
        ListOSPolicyAssignmentRevisionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse").msgclass
        DeleteOSPolicyAssignmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.DeleteOSPolicyAssignmentRequest").msgclass
      end
    end
  end
end
