1// Copyright 2023 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// https://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17option java_outer_classname = "OppProto"; 18 19package pandora; 20 21import "google/protobuf/empty.proto"; 22 23service Opp { 24 // Open an rfcommChannel for an OBEX connection. 25 rpc OpenRfcommChannel(OpenRfcommChannelRequest) returns (google.protobuf.Empty); 26 // Open an l2cap channel for an OBEX connection. 27 rpc OpenL2capChannel(OpenL2capChannelRequest) returns (google.protobuf.Empty); 28 // Accept Put request by the Push Client to the Push Server within an OBEX connection. 29 rpc AcceptPutOperation(google.protobuf.Empty) returns (AcceptPutOperationResponse); 30} 31 32message OpenRfcommChannelRequest { 33 bytes address = 1; 34} 35 36message OpenL2capChannelRequest { 37 bytes address = 1; 38} 39 40enum PutStatus { 41 ACCEPTED = 0; 42 DECLINED = 1; 43} 44 45message AcceptPutOperationResponse { 46 PutStatus status = 1; 47}