mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 20:47:11 +00:00
16 lines
284 B
Protocol Buffer
16 lines
284 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package main;
|
|
|
|
import "google/protobuf/descriptor.proto";
|
|
|
|
extend google.protobuf.FieldOptions {
|
|
string default_string = 50000;
|
|
int32 default_int = 50001;
|
|
}
|
|
|
|
message Message {
|
|
string name = 1 [(default_string) = "gopher"];
|
|
int32 age = 2[(default_int) = 10];
|
|
}
|