mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
b01edca420
Also adds a few file global options to keep the generated code similar to what we already had.
19 lines
681 B
Protocol Buffer
19 lines
681 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package discover;
|
|
|
|
import "repos/protobuf/gogoproto/gogo.proto";
|
|
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
option (gogoproto.sizer_all) = false;
|
|
option (gogoproto.protosizer_all) = true;
|
|
option (gogoproto.goproto_unkeyed_all) = false;
|
|
option (gogoproto.goproto_unrecognized_all) = false;
|
|
option (gogoproto.goproto_sizecache_all) = false;
|
|
|
|
message Announce {
|
|
bytes id = 1 [(gogoproto.customname) = "ID", (gogoproto.customtype) = "github.com/syncthing/syncthing/lib/protocol.DeviceID", (gogoproto.nullable) = false];
|
|
repeated string addresses = 2;
|
|
int64 instance_id = 3 [(gogoproto.customname) = "InstanceID"];
|
|
}
|