Move credentials related proto from Prensence to internal

Replace PresenceIdentityType with proto

PiperOrigin-RevId: 467294239
This commit is contained in:
Xin He
2022-08-12 14:18:34 -07:00
committed by Copybara-Service
parent 2327ab219c
commit 123a2cfd18
21 changed files with 108 additions and 97 deletions
+1 -1
View File
@@ -76,8 +76,8 @@ cc_library(
"//internal/platform:base",
"//internal/platform:cancellation_flag",
"//internal/platform:uuid",
"//internal/proto:credential_cc_proto",
"//presence:credential",
"//presence/proto:credential_cc_proto",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/strings",
],
@@ -21,25 +21,26 @@
#include <vector>
#include "internal/platform/exception.h"
#include "internal/proto/credential.pb.h"
#include "presence/presence_identity.h"
#include "presence/proto/credential.pb.h"
namespace location {
namespace nearby {
namespace api {
using ::nearby::presence::PresenceIdentity;
using ::nearby::presence::proto::PrivateCredential;
using ::nearby::presence::proto::PublicCredential;
using ::nearby::internal::IdentityType;
using ::nearby::internal::PrivateCredential;
using ::nearby::internal::PublicCredential;
enum class CredentialOperationStatus {
kFailed = 0,
kSucceeded = 1,
kUnknown = 0,
kFailed = 1,
kSucceeded = 2,
};
struct CredentialSelector {
std::string account_name;
PresenceIdentity::IdentityType identity_type;
IdentityType identity_type;
};
enum PublicCredentialType {