mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Remove experiments_log.proto.
PiperOrigin-RevId: 626095230
This commit is contained in:
committed by
Copybara-Service
parent
540ebba9b4
commit
dbb6550c2f
@@ -28,7 +28,6 @@ cc_library(
|
||||
],
|
||||
deps = [
|
||||
"//internal/proto/analytics:connections_log_cc_proto",
|
||||
"//internal/proto/analytics:experiments_log_cc_proto",
|
||||
"//internal/proto/analytics:fast_pair_log_cc_proto",
|
||||
"//sharing/proto/analytics:sharing_log_cc_proto",
|
||||
],
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#define NEARBY_ANALYTICS_EVENT_LOGGER_H_
|
||||
|
||||
#include "internal/proto/analytics/connections_log.pb.h"
|
||||
#include "internal/proto/analytics/experiments_log.pb.h"
|
||||
#include "internal/proto/analytics/fast_pair_log.pb.h"
|
||||
#include "sharing/proto/analytics/nearby_sharing_log.pb.h"
|
||||
|
||||
@@ -36,10 +35,6 @@ class EventLogger {
|
||||
const location::nearby::analytics::proto::ConnectionsLog& message) = 0;
|
||||
virtual void Log(const sharing::analytics::proto::SharingLog& message) = 0;
|
||||
virtual void Log(const nearby::proto::fastpair::FastPairLog& message) = 0;
|
||||
|
||||
// Configure experiment parameters used by this logger.
|
||||
virtual void ConfigureExperiments(
|
||||
const experiments::ExperimentsLog& message) = 0;
|
||||
};
|
||||
|
||||
} // namespace analytics
|
||||
|
||||
@@ -33,9 +33,6 @@ class MockEventLogger : public ::nearby::analytics::EventLogger {
|
||||
(override));
|
||||
MOCK_METHOD(void, Log, (const nearby::proto::fastpair::FastPairLog& message),
|
||||
(override));
|
||||
|
||||
MOCK_METHOD(void, ConfigureExperiments,
|
||||
(const experiments::ExperimentsLog& message), (override));
|
||||
};
|
||||
|
||||
} // namespace nearby::analytics
|
||||
|
||||
@@ -56,21 +56,6 @@ cc_proto_library(
|
||||
deps = [":connections_log_proto"],
|
||||
)
|
||||
|
||||
proto_library(
|
||||
name = "experiments_log_proto",
|
||||
srcs = ["experiments_log.proto"],
|
||||
)
|
||||
|
||||
cc_proto_library(
|
||||
name = "experiments_log_cc_proto",
|
||||
visibility = [
|
||||
"//internal/analytics:__pkg__",
|
||||
"//location/nearby/analytics/cpp/logging:__subpackages__",
|
||||
"//location/nearby/cpp/experiments:__subpackages__",
|
||||
],
|
||||
deps = [":experiments_log_proto"],
|
||||
)
|
||||
|
||||
cc_test(
|
||||
name = "proto_analytics_test",
|
||||
size = "small",
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
// Copyright 2024 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 nearby.experiments;
|
||||
|
||||
// import "storage/datapol/annotations/proto/semantic_annotations.proto";
|
||||
|
||||
option optimize_for = LITE_RUNTIME;
|
||||
option java_outer_classname = "ExperimentsLogProtos";
|
||||
option java_package = "com.google.nearby.experiments";
|
||||
// option (datapol.file_vetting_status) = "latest";
|
||||
|
||||
// This proto encapsulates the experiments info to identify which logs belong
|
||||
// to which experiments. It's passed from Phenotype
|
||||
// (google3/location/nearby/cpp/experiments) to Clearcut event logger
|
||||
// (google3/location/nearby/analytics/cpp/logging/) so that the event logger
|
||||
// can generate the experiment-based Rasta metrics (go/rasta-overview).
|
||||
// NextId: 3
|
||||
message ExperimentsLog {
|
||||
// Experiment token associated with the Mendel config package.
|
||||
optional bytes experiment_token = 1
|
||||
/* type = ST_EXPERIMENT_ID */;
|
||||
|
||||
// Zwieback cookie shared between Phenotype and Clearcut clients so that
|
||||
// Rasta metrics can reflect the correct population of devices.
|
||||
optional string zwieback_cookie = 2
|
||||
/* type = ST_ZWIEBACK_ID */;
|
||||
}
|
||||
Reference in New Issue
Block a user