github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/src/tao/tao_rpc.proto (about) 1 // File: tao_rpc.proto 2 // Author: Tom Roeder <tmroeder@google.com> 3 // 4 // Description: Protocol buffers for TaoRPC. 5 // 6 // Copyright (c) 2013, Google Inc. All rights reserved. 7 // 8 // Licensed under the Apache License, Version 2.0 (the "License"); 9 // you may not use this file except in compliance with the License. 10 // You may obtain a copy of the License at 11 // 12 // http://www.apache.org/licenses/LICENSE-2.0 13 // 14 // Unless required by applicable law or agreed to in writing, software 15 // distributed under the License is distributed on an "AS IS" BASIS, 16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 // See the License for the specific language governing permissions and 18 // limitations under the License. 19 20 syntax = "proto2"; 21 package tao; 22 23 // Copied from: util/protorpc/protorpc.proto 24 25 // Protobuf RPC request header 26 message ProtoRPCRequestHeader { 27 // The service method. 28 required string op = 1; 29 30 // The sequence number. 31 required uint64 seq = 2; 32 } 33 34 // Protobuf RPC response header. 35 message ProtoRPCResponseHeader { 36 // The service method (matches request op). 37 required string op = 1; 38 39 // The sequence number (matches request seq). 40 required uint64 seq = 2; 41 42 // The optional error string. 43 optional string error = 3; 44 } 45 46 // Copied from: tao/tao_rpc.proto 47 48 message TaoRPCRequest { 49 optional bytes data = 1; 50 optional int32 size = 2; 51 optional string policy = 3; 52 optional int64 time = 4; 53 optional int64 expiration = 5; 54 optional bytes issuer = 6; 55 optional string label = 7; 56 optional int64 counter = 8; 57 } 58 59 message TaoRPCResponse { 60 optional bytes data = 1; 61 optional string policy = 2; 62 optional int64 counter = 3; 63 }