mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Add instance type to metadata to differentiate personal or managed profiles.
PiperOrigin-RevId: 538524943
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user