mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Add CloudRegisterReceiverResult enums for cloud sharing
PiperOrigin-RevId: 829257328
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user