1*d5c09012SAndroid Build Coastguard Worker// Copyright 2022 Google LLC 2*d5c09012SAndroid Build Coastguard Worker// 3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*d5c09012SAndroid Build Coastguard Worker// 7*d5c09012SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*d5c09012SAndroid Build Coastguard Worker// 9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*d5c09012SAndroid Build Coastguard Worker// limitations under the License. 14*d5c09012SAndroid Build Coastguard Worker 15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3"; 16*d5c09012SAndroid Build Coastguard Worker 17*d5c09012SAndroid Build Coastguard Workerpackage google.rpc; 18*d5c09012SAndroid Build Coastguard Worker 19*d5c09012SAndroid Build Coastguard Workeroption go_package = "google.golang.org/genproto/googleapis/rpc/http;http"; 20*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true; 21*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "HttpProto"; 22*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.rpc"; 23*d5c09012SAndroid Build Coastguard Workeroption objc_class_prefix = "RPC"; 24*d5c09012SAndroid Build Coastguard Worker 25*d5c09012SAndroid Build Coastguard Worker// Represents an HTTP request. 26*d5c09012SAndroid Build Coastguard Workermessage HttpRequest { 27*d5c09012SAndroid Build Coastguard Worker // The HTTP request method. 28*d5c09012SAndroid Build Coastguard Worker string method = 1; 29*d5c09012SAndroid Build Coastguard Worker 30*d5c09012SAndroid Build Coastguard Worker // The HTTP request URI. 31*d5c09012SAndroid Build Coastguard Worker string uri = 2; 32*d5c09012SAndroid Build Coastguard Worker 33*d5c09012SAndroid Build Coastguard Worker // The HTTP request headers. The ordering of the headers is significant. 34*d5c09012SAndroid Build Coastguard Worker // Multiple headers with the same key may present for the request. 35*d5c09012SAndroid Build Coastguard Worker repeated HttpHeader headers = 3; 36*d5c09012SAndroid Build Coastguard Worker 37*d5c09012SAndroid Build Coastguard Worker // The HTTP request body. If the body is not expected, it should be empty. 38*d5c09012SAndroid Build Coastguard Worker bytes body = 4; 39*d5c09012SAndroid Build Coastguard Worker} 40*d5c09012SAndroid Build Coastguard Worker 41*d5c09012SAndroid Build Coastguard Worker// Represents an HTTP response. 42*d5c09012SAndroid Build Coastguard Workermessage HttpResponse { 43*d5c09012SAndroid Build Coastguard Worker // The HTTP status code, such as 200 or 404. 44*d5c09012SAndroid Build Coastguard Worker int32 status = 1; 45*d5c09012SAndroid Build Coastguard Worker 46*d5c09012SAndroid Build Coastguard Worker // The HTTP reason phrase, such as "OK" or "Not Found". 47*d5c09012SAndroid Build Coastguard Worker string reason = 2; 48*d5c09012SAndroid Build Coastguard Worker 49*d5c09012SAndroid Build Coastguard Worker // The HTTP response headers. The ordering of the headers is significant. 50*d5c09012SAndroid Build Coastguard Worker // Multiple headers with the same key may present for the response. 51*d5c09012SAndroid Build Coastguard Worker repeated HttpHeader headers = 3; 52*d5c09012SAndroid Build Coastguard Worker 53*d5c09012SAndroid Build Coastguard Worker // The HTTP response body. If the body is not expected, it should be empty. 54*d5c09012SAndroid Build Coastguard Worker bytes body = 4; 55*d5c09012SAndroid Build Coastguard Worker} 56*d5c09012SAndroid Build Coastguard Worker 57*d5c09012SAndroid Build Coastguard Worker// Represents an HTTP header. 58*d5c09012SAndroid Build Coastguard Workermessage HttpHeader { 59*d5c09012SAndroid Build Coastguard Worker // The HTTP header key. It is case insensitive. 60*d5c09012SAndroid Build Coastguard Worker string key = 1; 61*d5c09012SAndroid Build Coastguard Worker 62*d5c09012SAndroid Build Coastguard Worker // The HTTP header value. 63*d5c09012SAndroid Build Coastguard Worker string value = 2; 64*d5c09012SAndroid Build Coastguard Worker} 65