Add CloudRegisterReceiverResult enums for cloud sharing

PiperOrigin-RevId: 829257328
This commit is contained in:
hai007
2025-11-06 21:39:53 -08:00
committed by Copybara-Service
parent 3dcd449984
commit 025aa25260
2 changed files with 37 additions and 1 deletions
+33
View File
@@ -1008,6 +1008,39 @@ enum CloudCreateSharingResult {
// //depot/google3/java/com/google/android/gmscore/integ/modules/nearby/src/com/google/android/gms/nearby/sharing/cloud/data/CreateSharingRequestResultStatus.kt
// )
// LINT.IfChange
// The result of registering a receiver for a cloud sharing. Used by
// CLOUD_REGISTER_RECEIVER.
enum CloudRegisterReceiverResult {
CLOUD_REGISTER_RECEIVER_RESULT_UNKNOWN = 0;
// The request was successful.
CLOUD_REGISTER_RECEIVER_RESULT_SUCCESS = 1;
// The request contains invalid arguments.
CLOUD_REGISTER_RECEIVER_RESULT_INVALID_ARGUMENT = 2;
// Deadline expired before the request could complete.
CLOUD_REGISTER_RECEIVER_RESULT_DEADLINE_EXCEEDED = 3;
// An internal error occurred during the request.
CLOUD_REGISTER_RECEIVER_RESULT_INTERNAL = 4;
// The request was rejected due to too many receivers.
CLOUD_REGISTER_RECEIVER_RESULT_RESOURCE_EXHAUSTED = 5;
// The service is currently unavailable.
CLOUD_REGISTER_RECEIVER_RESULT_UNAVAILABLE = 6;
// The caller does not have permission to register a receiver.
CLOUD_REGISTER_RECEIVER_RESULT_PERMISSION_DENIED = 7;
CLOUD_REGISTER_RECEIVER_RESULT_NOT_FOUND = 8;
CLOUD_REGISTER_RECEIVER_RESULT_ALREADY_EXISTS = 9;
CLOUD_REGISTER_RECEIVER_RESULT_UNAUTHENTICATED = 10;
CLOUD_REGISTER_RECEIVER_RESULT_CANCELLED = 11;
CLOUD_REGISTER_RECEIVER_RESULT_FAILED_PRECONDITION = 12;
CLOUD_REGISTER_RECEIVER_RESULT_ABORTED = 13;
CLOUD_REGISTER_RECEIVER_RESULT_OUT_OF_RANGE = 14;
CLOUD_REGISTER_RECEIVER_RESULT_UNIMPLEMENTED = 15;
CLOUD_REGISTER_RECEIVER_RESULT_DATA_LOSS = 16;
}
// LINT.ThenChange(
// //depot/google3/javascript/net/grpc/web/statuscode.ts
// )
// The action type of uploading files to the cloud. Used by CLOUD_UPLOAD_START
// and CLOUD_UPLOAD_END.
enum CloudActionType {
@@ -1060,7 +1060,10 @@ message SharingLog {
optional location.nearby.proto.sharing.CloudCreateSharingResult result = 2;
}
// EventType: CLOUD_REGISTER_RECEIVER used by QR code cloud web receiver
message CloudRegisterReceiver {}
message CloudRegisterReceiver {
optional location.nearby.proto.sharing.CloudRegisterReceiverResult result =
1;
}
// EventType: CLOUD_UPLOAD_START used by QR code cloud web sender
// The cloud_sharing_id and flow_id are logged in the event metadata.