github.com/cloudwego/dynamicgo@v0.2.6-0.20240519101509-707f41b6b834/testdata/idl/base.proto (about) 1 // Copyright 2018 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Test Protobuf definitions with proto3 syntax. 6 syntax = "proto3"; 7 8 package pb3; 9 option go_package = "pb/base"; 10 11 message TrafficEnv { 12 bool Open = 1; 13 string Env = 2; 14 } 15 16 message Base { 17 string LogID = 1; 18 string Caller = 2; 19 string Addr = 3; 20 string Client = 4; 21 optional TrafficEnv TrafficEnv = 5; 22 map<string, string> Extra = 6; 23 } 24 25 message BaseResp { 26 string StatusMessage = 1; 27 int32 StatusCode = 2; 28 map<string, string> Extra = 3; 29 }