Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * SPDX-FileCopyrightText: 2015, microG Project Team
- * SPDX-License-Identifier: Apache-2.0
- */
- option java_package = "org.microg.gms.wearable.proto";
- option java_outer_classname = "WearableProto";
- message AckAsset {
- optional string digest = 1;
- }
- message AppKey {
- optional string packageName = 1;
- optional string signatureDigest = 2;
- }
- message AppKeys {
- repeated AppKey appKeys = 1;
- }
- message Asset {
- // cannot find what other fields is
- // maybe deprecated and
- // not used anymore in new google gms
- optional string digest = 4;
- }
- message AssetEntry {
- optional string key = 1;
- optional Asset value = 2;
- optional int32 unknown3 = 3;
- }
- message ChannelControlRequest {
- optional int32 type = 1;
- optional sfixed64 channelId = 2;
- optional bool fromChannelOperator = 3;
- optional string packageName = 4;
- optional string signatureDigest = 5;
- optional string path = 6;
- optional int32 closeErrorCode = 7;
- optional bool isReliable = 8;
- }
- message ChannelDataAckRequest {
- optional ChannelDataHeader header = 1;
- optional bool finalMessage = 2;
- }
- message ChannelDataHeader {
- optional sfixed64 channelId = 1;
- optional bool fromChannelOperator = 2;
- optional int64 requestId = 3;
- }
- message ChannelDataRequest {
- optional ChannelDataHeader header = 1;
- optional bytes payload = 2;
- optional bool finalMessage = 3;
- }
- message ChannelTransferInfo {
- optional int64 offset = 1;
- optional bool is_last_chunk = 2;
- optional int64 total_size = 3;
- }
- message ChannelTransferRequest {
- optional ChannelTransferInfo transfer_info = 1;
- optional bytes payload = 2;
- optional bool isFinal = 3;
- }
- message ChannelCloseRequest {
- optional ChannelTransferInfo transfer_info = 1;
- optional bool isCancelled = 2;
- }
- message ChannelOpenRequest {
- enum ChannelType {
- CHANNEL_TYPE_UNKNOWN = 0;
- CHANNEL_TYPE_DUPLEX = 1;
- CHANNEL_TYPE_SOURCE = 2;
- CHANNEL_TYPE_SINK = 3;
- }
- optional ChannelType type = 1;
- optional sfixed64 channelId = 2;
- optional bool isEncrypted = 3;
- optional string sourceNodeId = 4;
- optional string targetNodeId = 5;
- optional string path = 6;
- optional int32 flags = 7;
- optional bool isReliable = 8;
- optional bytes payload = 9;
- }
- message ChannelRequest {
- optional ChannelTransferRequest channelControlRequest = 2;
- optional ChannelOpenRequest channelDataRequest = 3;
- optional ChannelCloseRequest channelDataAckRequest = 4;
- optional int32 status_code = 6;
- optional int32 error_code = 7;
- }
- message Connect {
- optional string id = 1;
- optional string name = 2;
- optional int64 peerAndroidId = 3;
- optional int32 peerVersion = 4;
- optional int32 peerMinimumVersion = 5;
- optional int32 capabilities = 6;
- optional string networkId = 7;
- optional string packageName = 8;
- optional bool migrating = 9;
- optional string migratingFromNodeId = 10;
- optional int32 androidSdkVersion = 11;
- }
- message FetchAsset {
- optional string digest = 1;
- optional string target_node_id = 2;
- optional string source_node_id = 3;
- optional bool is_urgent = 4;
- }
- message FilePiece {
- optional string fileName = 1;
- optional bool isFinalPiece = 2;
- optional bytes data = 3;
- optional string mime_type = 4;
- }
- message Heartbeat {
- }
- message MessagePiece {
- optional bytes data = 1;
- optional string digest = 2;
- optional int32 thisPiece = 3;
- optional int32 totalPieces = 4;
- optional int32 queueId = 5;
- }
- message Request {
- enum Type {
- TYPE_REQUEST = 0;
- TYPE_RESPONSE = 1;
- TYPE_ERROR = 2;
- }
- optional int32 requestId = 1;
- optional string targetNodeId = 2;
- optional string sourceNodeId = 3;
- optional string path = 4;
- optional int32 response_id = 5; // 0 if request, >0 for reply
- optional string packageName = 6;
- optional bytes rawData = 7;
- optional string correlation_id = 8;
- optional ChannelRequest request = 9;
- optional int32 channel_id = 10;
- optional bool is_response = 11;
- optional int32 flags = 12;
- optional Type priority = 13;
- }
- //message Request {
- // enum Priority {
- // PRIORITY_LOW = 0;
- // PRIORITY_DEFAULT = 1;
- // PRIORITY_HIGH = 2;
- // }
- //
- // optional int32 requestId = 1;
- // optional string packageName = 2;
- // optional string signatureDigest = 3;
- // optional string targetNodeId = 4;
- // optional int32 unknown5 = 5; // always has to be 0, same in gms
- // optional string path = 6;
- // optional bytes rawData = 7;
- // optional string sourceNodeId = 8;
- // optional ChannelRequest request = 9;
- // optional int32 generation = 10;
- // optional bool requiresResponse = 11;
- // optional int32 senderRequestId = 12;
- // optional Priority priority = 13;
- //}
- message RootMessage {
- optional SetAsset setAsset = 4;
- optional AckAsset ackAsset = 5;
- optional FetchAsset fetchAsset = 6;
- optional Connect connect = 7;
- optional Request rpcRequest = 8;
- optional Heartbeat heartbeat = 9;
- optional FilePiece filePiece = 10;
- optional Request channelRequest = 11;
- optional EncryptionHandshake encryption_handshake = 12;
- optional Request rpcWithResponseId = 13;
- optional bool hasFileAttachment = 16;
- optional SyncStart syncStart = 17;
- // IosMultiAppAuth = 18
- optional SetDataItem setDataItem = 19;
- optional ControlMessage control_message = 20;
- }
- //message RootMessage {
- // optional SetAsset setAsset = 4;
- // optional AckAsset ackAsset = 5;
- // optional FetchAsset fetchAsset = 6;
- // optional Connect connect = 7;
- // optional SyncStart syncStart = 8;
- // optional SetDataItem setDataItem = 9;
- // optional Request rpcRequest = 10;
- // optional Heartbeat heartbeat = 11;
- // optional FilePiece filePiece = 12;
- // optional bool hasAsset = 13;
- // optional Request channelRequest = 16;
- // optional EncryptionHandshake encryption_handshake = 17;
- // optional Request rpcWithResponseId = 18;
- // // IosMultiAppAuth = 19
- // optional ControlMessage control_message = 20;
- //}
- message SetAsset {
- optional string digest = 1;
- optional bytes data = 2;
- optional AppKeys appkeys = 3;
- }
- message SetDataItem {
- optional string packageName = 1;
- optional string uri = 2;
- repeated string unknown3 = 3;
- optional bytes data = 4;
- optional int64 seqId = 5;
- optional bool deleted = 6;
- optional string source = 7;
- repeated AssetEntry assets = 8;
- optional string signatureDigest = 9;
- optional int64 lastModified = 10;
- }
- message PathEntry {
- optional string path = 1;
- }
- message PathList {
- repeated PathEntry items = 1;
- }
- message DataDigest {
- enum AlgoType {
- ALGO_TYPE_UNKNOWN = 0;
- ALGO_TYPE_MD5 = 1;
- ALGO_TYPE_SHA1 = 2;
- }
- optional AlgoType algorithm = 1;
- optional string value = 2;
- }
- message DataDigestList {
- repeated DataDigest items = 1;
- }
- message SyncStartItem {
- optional string uri = 1;
- optional DataDigestList digest_list = 2;
- optional PathList path_list = 3;
- }
- message SyncStartItems {
- repeated SyncStartItem items = 1;
- }
- message SyncStart {
- optional int64 timestamp = 1;
- repeated SyncTableEntry syncTable = 2;
- optional int32 sync_type = 3;
- optional SyncStartItems items = 4;
- }
- message SyncTableEntry {
- optional string uri = 1;
- optional int64 version = 2;
- }
- message EncryptionHandshake {
- enum Role {
- ROLE_UNKNOWN = 0;
- ROLE_INITIATOR = 1;
- ROLE_RESPONDER = 2;
- }
- optional bytes pubKey = 1;
- optional bytes nonce = 2;
- optional bool isResumed = 3;
- optional Role role = 4;
- }
- message ControlMessage {
- enum Type {
- TYPE_UNKNOWN = 0;
- TYPE_CONNECTION_REQ = 1;
- TYPE_CONNECTION_ACK = 2;
- TYPE_DISCONNECT = 3;
- TYPE_BANDWIDTH_UPGRADE = 4;
- TYPE_KEEP_ALIVE = 5;
- TYPE_DISCONNECT_ACK = 6;
- TYPE_PAYLOAD_TRANSFER = 7;
- }
- optional Type type = 1;
- optional AccountMatchingMessage account_matching_message = 2;
- }
- message AccountMatchingEntry {
- optional string key = 1;
- optional string value = 2;
- }
- message AccountMatchingMessage {
- optional int32 status = 1;
- repeated AccountMatchingEntry entries = 2;
- optional string token = 3;
- }
Advertisement
Add Comment
Please, Sign In to add comment