1// Copyright 2016 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//      http://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
17package storage_bench;
18
19message ObjectRead{
20  // The bucket string identifier.
21  string bucketName = 1;
22  // The object/blob string identifier.
23  string objectName = 2;
24}
25
26message ObjectWrite{
27   // The bucket string identifier.
28  string bucketName = 1;
29  // The object/blob string identifiers.
30  string objectName = 2;
31  // The string containing the upload file path.
32  string destination = 3;
33}
34
35message EmptyResponse{
36}
37
38service StorageBenchWrapper{
39  // Performs an upload from a specific object.
40  rpc Write(ObjectWrite) returns (EmptyResponse) {}
41  // Read a specific object.
42  rpc Read(ObjectRead) returns (EmptyResponse){}
43}
44