mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Move to google.protobuf.FieldMask
PiperOrigin-RevId: 641320767
This commit is contained in:
committed by
Copybara-Service
parent
bc66c63a48
commit
fb982295fb
@@ -42,6 +42,7 @@ cc_library(
|
||||
"@com_google_absl//absl/status:statusor",
|
||||
"@com_google_absl//absl/strings",
|
||||
"@com_google_absl//absl/time",
|
||||
"@com_google_protobuf//:protobuf",
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#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"
|
||||
@@ -43,7 +44,6 @@
|
||||
#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"
|
||||
|
||||
+3
-1
@@ -24,12 +24,14 @@ 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(
|
||||
|
||||
@@ -16,7 +16,7 @@ syntax = "proto3";
|
||||
|
||||
package nearby.sharing.proto;
|
||||
|
||||
import "sharing/proto/field_mask.proto";
|
||||
import "google/protobuf/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
|
||||
FieldMask update_mask = 2;
|
||||
google.protobuf.FieldMask update_mask = 2;
|
||||
}
|
||||
|
||||
// The response for UpdateDeviceRequest.
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
// 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;
|
||||
}
|
||||
Reference in New Issue
Block a user