Files
nearby/internal/proto/metadata.proto
T
Hai Shang c312442f3d internal clean up
PiperOrigin-RevId: 521555239
2023-04-03 14:00:22 -07:00

70 lines
1.8 KiB
Protocol Buffer

// Copyright 2023 Google LLC
//
// 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
//
// https://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 = "proto3";
package nearby.internal;
// option java_api_version = 2;
option java_multiple_files = true;
option java_package = "com.google.nearby.presence";
option java_outer_classname = "MetadataProto";
option optimize_for = LITE_RUNTIME;
// The metadata of a device.
// Contains confidential data not to be broadcasted directly in OTA.
message Metadata {
// The type of the device.
DeviceType device_type = 1;
// The account name of the account who owns the device.
string account_name = 2;
// The name of the local device to be returned through credentials.
string device_name = 3;
// The name of the user who owns the device.
string user_name = 4;
// The profile url of the device.
string device_profile_url = 5;
// The Bluetooth MAC address of the device.
bytes bluetooth_mac_address = 6;
}
// The type of the device.
enum DeviceType {
// The type of the device is unknown.
DEVICE_TYPE_UNKNOWN = 0;
// The device is a phone.
DEVICE_TYPE_PHONE = 1;
// The device is a tablet.
DEVICE_TYPE_TABLET = 2;
// The device is a display.
DEVICE_TYPE_DISPLAY = 3;
// The device is a laptop.
DEVICE_TYPE_LAPTOP = 4;
// The device is a TV.
DEVICE_TYPE_TV = 5;
// The device is a watch.
DEVICE_TYPE_WATCH = 6;
}