/*
 * Copyright (C) 2023 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

syntax = "proto2";

package devicelockcontroller;

option java_package = "com.android.devicelockcontroller.proto";
option java_multiple_files = true;

// The different Device Lock programs in which a device can be enrolled.
enum EnrollmentType {
  ENROLLMENT_TYPE_UNSPECIFIED = 0;
  // Device Lock Financing program.
  ENROLLMENT_TYPE_FINANCE = 1;
  // Device Lock Subsidy program.
  ENROLLMENT_TYPE_SUBSIDY = 2;
}

message EnrollmentInfo {}
