Internal change

PiperOrigin-RevId: 369382315
This commit is contained in:
hai007
2021-04-20 00:13:07 -07:00
committed by Copybara-Service
parent fa4aa9d6e9
commit 3b1431c5ea
2 changed files with 61 additions and 0 deletions
+20
View File
@@ -204,3 +204,23 @@ go_proto_library(
name = "nearby_event_codes_go_proto",
deps = [":nearby_event_codes_proto"],
)
proto_library(
name = "uwb_enums_proto",
srcs = ["uwb_enums.proto"],
cc_api_version = 2,
compatible_with = ["//buildenv/target:appengine"],
deps = [
"//logs/proto/logs_annotations",
],
)
java_lite_proto_library(
name = "uwb_enums_java_proto_lite",
deps = [":uwb_enums_proto"],
)
java_proto_library(
name = "uwb_enums_java_proto",
deps = [":uwb_enums_proto"],
)
+41
View File
@@ -0,0 +1,41 @@
// Copyright 2020 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 = "proto2";
package location.nearby.proto.uwb;
option optimize_for = LITE_RUNTIME;
option java_package = "com.google.location.nearby.proto";
option java_outer_classname = "UwbEnums";
option objc_class_prefix = "GNUP";
// The role which the device takes during UWB ranging.
// LINT.IfChange()
enum RangingRole {
ROLE_UNKNOWN = 0;
ROLE_CONTROLLER = 1;
ROLE_CONTROLLEE = 2;
}
// LINT.ThenChange(//depot/google3/java/com/google/android/gmscore/integ/client/nearby/src/com/google/android/gms/nearby/uwb/UwbOptions.java)
// The type how a UWB session should be created.
// LINT.IfChange()
enum SessionType {
TYPE_UNKNOWN = 0;
TYPE_UNICAST = 1;
TYPE_MULTICAST = 2;
}
// LINT.ThenChange(//depot/google3/java/com/google/android/gmscore/integ/client/nearby/src/com/google/android/gms/nearby/uwb/UwbOptions.java)