1/* 2 * Copyright (C) 2021 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 */ 16 17syntax = "proto3"; 18 19package android.hardware.automotive.vehicle.proto; 20 21import "android/hardware/automotive/vehicle/StatusCode.proto"; 22import "android/hardware/automotive/vehicle/VehiclePropValue.proto"; 23 24message VehiclePropValueRequest { 25 int64 request_id = 1; 26 VehiclePropValue value = 2; 27}; 28 29message UpdateSampleRateRequest { 30 /* Property identifier */ 31 int32 prop = 1; 32 33 /* Area type(s) for non-global property it must be one of the value from 34 * VehicleArea* enums or 0 for global properties. */ 35 int32 area_id = 2; 36 37 float sample_rate = 3; 38}; 39 40message SetValueResult { 41 int64 request_id = 1; 42 StatusCode status = 2; 43}; 44 45message GetValueResult { 46 int64 request_id = 1; 47 StatusCode status = 2; 48 VehiclePropValue value = 3; 49}; 50 51message VehiclePropValueRequests { 52 repeated VehiclePropValueRequest requests = 1; 53}; 54 55message SetValueResults { 56 repeated SetValueResult results = 1; 57}; 58 59message GetValueResults { 60 repeated GetValueResult results = 1; 61}; 62