Source

  1. acme
  2. billing
  3. v2

quote.proto

proto3 · package acme.billing.v2

1syntax = "proto3";
2
3package acme.billing.v2;
4
5import "acme/billing/v1/invoice.proto";
6import "google/api/annotations.proto";
7import "google/api/field_behavior.proto";
8
9option go_package = "acme.example/billing/v2;billingv2";
11// A price quote that can be accepted into a v1 invoice.
12message Quote {
13 string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
14 string customer_id = 2 [(google.api.field_behavior) = REQUIRED];
15 acme.billing.v1.Money total = 3;
16 string note = 4;
19message GetQuoteRequest {
20 string id = 1 [(google.api.field_behavior) = REQUIRED];
23message GetQuoteResponse {
24 Quote quote = 1;
27// Reads quotes created by the v2 billing API.
28service QuoteService {
29 rpc GetQuote(GetQuoteRequest) returns (GetQuoteResponse) {
30 option (google.api.http) = { get: "/v2/quotes/{id}" };
31 option idempotency_level = NO_SIDE_EFFECTS;
32 }