Source
- acme
- billing
- v2
quote.proto
proto3 · package acme.billing.v2
1
syntax = "proto3";3
package acme.billing.v2;5
import "acme/billing/v1/invoice.proto";6
import "google/api/annotations.proto";7
import "google/api/field_behavior.proto";9
option go_package = "acme.example/billing/v2;billingv2";11
// A price quote that can be accepted into a v1 invoice.12
message 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;17
}19
message GetQuoteRequest {20
string id = 1 [(google.api.field_behavior) = REQUIRED];21
}23
message GetQuoteResponse {24
Quote quote = 1;25
}27
// Reads quotes created by the v2 billing API.28
service QuoteService {29
rpc GetQuote(GetQuoteRequest) returns (GetQuoteResponse) {30
option (google.api.http) = { get: "/v2/quotes/{id}" };31
option idempotency_level = NO_SIDE_EFFECTS;32
}33
}