Move to google.protobuf.FieldMask

PiperOrigin-RevId: 643065889
This commit is contained in:
Crisrael Lucero
2024-06-13 11:29:44 -07:00
committed by Copybara-Service
parent 7d86d17ba6
commit e78a60f512
5 changed files with 28 additions and 7 deletions
-1
View File
@@ -42,7 +42,6 @@ cc_library(
"@com_google_absl//absl/status:statusor",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/time",
"@com_google_protobuf//:protobuf",
],
)
@@ -24,7 +24,6 @@
#include <utility>
#include <vector>
#include "google/protobuf/field_mask.pb.h"
#include "absl/memory/memory.h"
#include "absl/random/random.h"
#include "absl/status/statusor.h"
@@ -44,6 +43,7 @@
#include "sharing/internal/public/logging.h"
#include "sharing/local_device_data/nearby_share_local_device_data_manager.h"
#include "sharing/proto/device_rpc.pb.h"
#include "sharing/proto/field_mask.pb.h"
#include "sharing/proto/rpc_resources.pb.h"
#include "sharing/scheduling/nearby_share_scheduler.h"
#include "sharing/scheduling/nearby_share_scheduler_factory.h"
+1 -3
View File
@@ -24,14 +24,12 @@ proto_library(
"contact_rpc.proto",
"device_rpc.proto",
"encrypted_metadata.proto",
"field_mask.proto",
"rpc_resources.proto",
"settings_observer_data.proto",
"timestamp.proto",
],
visibility = ["//visibility:public"],
deps = [
"@com_google_protobuf//:field_mask_proto",
],
)
cc_proto_library(
+2 -2
View File
@@ -16,7 +16,7 @@ syntax = "proto3";
package nearby.sharing.proto;
import "google/protobuf/field_mask.proto";
import "sharing/proto/field_mask.proto";
import "sharing/proto/rpc_resources.proto";
option optimize_for = LITE_RUNTIME;
@@ -30,7 +30,7 @@ message UpdateDeviceRequest {
// The FieldMask for updating specific columns in device table. For the
// 'FieldMask' definition, see
// https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
google.protobuf.FieldMask update_mask = 2;
FieldMask update_mask = 2;
}
// The response for UpdateDeviceRequest.
+24
View File
@@ -0,0 +1,24 @@
// Copyright 2021 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.sharing.proto;
option optimize_for = LITE_RUNTIME;
message FieldMask {
// The set of field mask paths.
repeated string paths = 1;
}