blob: fc444e2f1d0a0d50d56aa4c0ed58e425e3466831 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
/*
* Copyright 2011 Google Inc.
*
* 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
*
* http://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.
*/
//
// The Android internal storage format for per-client state.
syntax = "proto2";
package com.google.protos.ipc.invalidation;
option optimize_for = LITE_RUNTIME;
option java_outer_classname = "AndroidState";
import "client_protocol.proto";
// Base metadata for an Android client instance. All of these values
// are required and invariant for the life of the client.
message ClientMetadata {
// The version of this state.
optional Version version = 1;
// A key identifying a specific client on a device.
optional string client_key = 2;
// The client type for this client.
optional int32 client_type = 3;
// The user account name for this client.
optional string account_name = 4;
// The user account type for this client.
optional string account_type = 5;
// The authentication token type that is used for requests from this client.
optional string auth_type = 6;
// The application package name for the client's event listener.
optional string listener_pkg = 7;
// The class name for the client's event listener.
optional string listener_class = 8;
}
// Internal properties associated with the client by the client library. These
// properties may change or grow over time.
message ClientProperty {
// The key of the stored property
optional string key = 1;
// The value of the stored property
optional bytes value = 2;
}
// The stored state of the client combining base metadata and internal properties.
message StoredState {
optional ClientMetadata metadata = 1;
// TICL properties stored for this client.
repeated ClientProperty property = 9;
}
|