1// Copyright 2017 The Chromium Authors 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5syntax = "proto2"; 6 7option optimize_for = LITE_RUNTIME; 8 9package net.nqe.internal; 10 11// NetworkIDProto contains data that can be used to uniquely identify a network 12// type. 13// Next id: 4 14message NetworkIDProto { 15 // Connection type of the network mapped from 16 // net::NetworkChangeNotifier::ConnectionType. 17 optional int32 connection_type = 1; 18 // Name of this network. This is set to WiFi SSID or the MCCMNC of the 19 // network. 20 optional string id = 2; 21 // Signal strength of the network. Set to INT32_MIN when the value is 22 // unavailable. Otherwise, must be between 0 and 4 (both inclusive). This may 23 // take into account many different radio technology inputs. 0 represents very 24 // poor signal strength while 4 represents a very strong signal strength. 25 // The range is capped between 0 and 4 to ensure that a change in the value 26 // indicates a non-negligible change in the signal quality. 27 optional int32 signal_strength = 3; 28} 29