Add instance type to metadata to differentiate personal or managed profiles.

PiperOrigin-RevId: 538524943
This commit is contained in:
hai007
2023-06-07 19:16:08 +00:00
committed by Suet-fei Li
parent f1a22c4366
commit 49fb175f34
+19
View File
@@ -57,6 +57,9 @@ message Metadata {
// The Bluetooth MAC address of the device.
bytes bluetooth_mac_address = 6;
// The instance type (user profile) related to the metadata.
InstanceType instance_type = 7;
}
// The type of the device.
@@ -89,3 +92,19 @@ enum DeviceType {
// The device is a foldable.
DEVICE_TYPE_FOLDABLE = 8;
}
// The instance type of the metadata.
// LINT.IfChange
enum InstanceType {
// Unknown instance type.
INSTANCE_TYPE_UNKNOWN = 0;
// The metadata is associated with the main instance. (Usually
// first-registered personal profile.)
INSTANCE_TYPE_MAIN = 1;
// The metadata is associated with a secondary instance, such as a working
// profile.
INSTANCE_TYPE_SECONDARY = 2;
}
// LINT.ThenChange(//depot/google3/java/com/google/android/gmscore/integ/client/nearby/src/com/google/android/gms/nearby/connection/Device.java)