1/*
2 * Copyright (C) 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16syntax = "proto2";
17
18package androidx.health.platform.client.proto;
19
20import "change.proto";
21import "data.proto";
22
23option java_package = "androidx.health.platform.client.proto";
24option java_outer_classname = "ResponseProto";
25
26message ReadDataPointResponse {
27  optional DataPoint data = 1;
28}
29
30message InsertDataResponse {
31  repeated string data_point_uid = 1;
32}
33
34message ReadDataResponse {
35  optional DataPoint data_point = 1;
36}
37
38message ReadDataRangeResponse {
39  repeated DataPoint data_point = 1;
40  optional string page_token = 2;
41}
42
43message ReadExerciseRouteResponse {
44  optional DataPoint data_point = 1;
45}
46
47message AggregateDataResponse {
48  repeated AggregateDataRow rows = 1;
49}
50
51message GetChangesTokenResponse {
52  optional string changes_token = 1;
53}
54
55message GetChangesResponse {
56  repeated DataChange changes = 1;
57  optional bool has_more = 2;
58  optional string next_changes_token = 3;
59  optional bool changes_token_expired = 4;
60}