1// Copyright 2018 The Bazel Authors. All rights reserved. 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 17import "google/rpc/status.proto"; 18import "google/type/color.proto"; 19 20package rules_go.tests.integration.color_service; 21 22option go_package = "github.com/bazelbuild/rules_go/tests/integration/googleapis/color_service_proto"; 23 24message SetColorRequest { 25 string name = 1; 26 google.type.Color color = 2; 27} 28 29message SetColorResponse { 30 google.rpc.Status status = 1; 31} 32 33message GetColorRequest { 34 string name = 1; 35} 36 37message GetColorResponse { 38 google.rpc.Status status = 1; 39 google.type.Color color = 2; 40} 41 42service ColorService { 43 rpc SetColor(SetColorRequest) returns (SetColorResponse); 44 rpc GetColor(GetColorRequest) returns (GetColorResponse); 45} 46