mirror of https://github.com/dapr/dotnet-sdk.git
24 lines
660 B
Protocol Buffer
24 lines
660 B
Protocol Buffer
// ------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
// ------------------------------------------------------------
|
|
|
|
syntax = "proto3";
|
|
|
|
option csharp_namespace = "GrpcServiceSample.Generated";
|
|
|
|
message Account {
|
|
string Id = 1;
|
|
// Ideally we'd use the Money data type here, but to keep the sample simple we're using an int.
|
|
int32 Balance = 2;
|
|
}
|
|
|
|
message GetAccountRequest {
|
|
string Id = 1;
|
|
}
|
|
|
|
message Transaction {
|
|
string Id = 1;
|
|
// Ideally we'd use the Money data type here, but to keep the sample simple we're using an int.
|
|
int32 Amount = 2;
|
|
} |