Skip to content

Commit 842cefe

Browse files
committed
Add Gogo proto
1 parent b9abfcf commit 842cefe

File tree

3 files changed

+179
-1
lines changed

3 files changed

+179
-1
lines changed

generate.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ for i in `find ./api -name "*.proto" -type f`; do
1010
--experimental_allow_proto3_optional
1111
done
1212

13-
1413
echo "Generating Temporal API"
1514

1615
GRPC_PLUGIN=`which grpc_php_plugin`
@@ -30,6 +29,15 @@ for i in `find ./api/third_party/api -name "*.proto" -type f`; do
3029
--experimental_allow_proto3_optional
3130
done
3231

32+
echo "Generating Gogo proto"
33+
34+
for i in `find ./proto -name "*.proto" -type f`; do
35+
protoc \
36+
--proto_path=proto \
37+
--php_out=generated $i \
38+
--experimental_allow_proto3_optional
39+
done
40+
3341
echo "Removing Google Protobuf files"
3442

3543
rm -rf ./generated/Google

generated/GPBMetadata/Dependencies/Gogoproto/Gogo.php

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
// This code extracted from https://github.com/temporalio/api/blob/v1.25.0/dependencies/gogoproto/gogo.proto
2+
// and will be removed in the next major release.
3+
//
4+
// Protocol Buffers for Go with Gadgets
5+
//
6+
// Copyright (c) 2013, The GoGo Authors. All rights reserved.
7+
// http://github.com/temporalio/gogo-protobuf
8+
//
9+
// Redistribution and use in source and binary forms, with or without
10+
// modification, are permitted provided that the following conditions are
11+
// met:
12+
//
13+
// * Redistributions of source code must retain the above copyright
14+
// notice, this list of conditions and the following disclaimer.
15+
// * Redistributions in binary form must reproduce the above
16+
// copyright notice, this list of conditions and the following disclaimer
17+
// in the documentation and/or other materials provided with the
18+
// distribution.
19+
//
20+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21+
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22+
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23+
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24+
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25+
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26+
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28+
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29+
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31+
32+
syntax = "proto3";
33+
package gogoproto;
34+
35+
import "google/protobuf/descriptor.proto";
36+
37+
option go_package = "github.com/gogo/protobuf/gogoproto";
38+
39+
extend google.protobuf.EnumOptions {
40+
optional bool goproto_enum_prefix = 62001;
41+
optional bool goproto_enum_stringer = 62021;
42+
optional bool enum_stringer = 62022;
43+
optional string enum_customname = 62023;
44+
optional bool enumdecl = 62024;
45+
}
46+
47+
extend google.protobuf.EnumValueOptions {
48+
optional string enumvalue_customname = 66001;
49+
}
50+
51+
extend google.protobuf.FileOptions {
52+
optional bool goproto_getters_all = 63001;
53+
optional bool goproto_enum_prefix_all = 63002;
54+
optional bool goproto_stringer_all = 63003;
55+
optional bool verbose_equal_all = 63004;
56+
optional bool face_all = 63005;
57+
optional bool gostring_all = 63006;
58+
optional bool populate_all = 63007;
59+
optional bool stringer_all = 63008;
60+
optional bool onlyone_all = 63009;
61+
62+
optional bool equal_all = 63013;
63+
optional bool description_all = 63014;
64+
optional bool testgen_all = 63015;
65+
optional bool benchgen_all = 63016;
66+
optional bool marshaler_all = 63017;
67+
optional bool unmarshaler_all = 63018;
68+
optional bool stable_marshaler_all = 63019;
69+
70+
optional bool sizer_all = 63020;
71+
72+
optional bool goproto_enum_stringer_all = 63021;
73+
optional bool enum_stringer_all = 63022;
74+
75+
optional bool unsafe_marshaler_all = 63023;
76+
optional bool unsafe_unmarshaler_all = 63024;
77+
78+
optional bool goproto_extensions_map_all = 63025;
79+
optional bool goproto_unrecognized_all = 63026;
80+
optional bool gogoproto_import = 63027;
81+
optional bool protosizer_all = 63028;
82+
optional bool compare_all = 63029;
83+
optional bool typedecl_all = 63030;
84+
optional bool enumdecl_all = 63031;
85+
86+
optional bool goproto_registration = 63032;
87+
optional bool messagename_all = 63033;
88+
89+
optional bool goproto_sizecache_all = 63034;
90+
optional bool goproto_unkeyed_all = 63035;
91+
}
92+
93+
extend google.protobuf.MessageOptions {
94+
optional bool goproto_getters = 64001;
95+
optional bool goproto_stringer = 64003;
96+
optional bool verbose_equal = 64004;
97+
optional bool face = 64005;
98+
optional bool gostring = 64006;
99+
optional bool populate = 64007;
100+
optional bool stringer = 67008;
101+
optional bool onlyone = 64009;
102+
103+
optional bool equal = 64013;
104+
optional bool description = 64014;
105+
optional bool testgen = 64015;
106+
optional bool benchgen = 64016;
107+
optional bool marshaler = 64017;
108+
optional bool unmarshaler = 64018;
109+
optional bool stable_marshaler = 64019;
110+
111+
optional bool sizer = 64020;
112+
113+
optional bool unsafe_marshaler = 64023;
114+
optional bool unsafe_unmarshaler = 64024;
115+
116+
optional bool goproto_extensions_map = 64025;
117+
optional bool goproto_unrecognized = 64026;
118+
119+
optional bool protosizer = 64028;
120+
optional bool compare = 64029;
121+
122+
optional bool typedecl = 64030;
123+
124+
optional bool messagename = 64033;
125+
126+
optional bool goproto_sizecache = 64034;
127+
optional bool goproto_unkeyed = 64035;
128+
}
129+
130+
extend google.protobuf.FieldOptions {
131+
optional bool nullable = 65001;
132+
optional bool embed = 65002;
133+
optional string customtype = 65003;
134+
optional string customname = 65004;
135+
optional string jsontag = 65005;
136+
optional string moretags = 65006;
137+
optional string casttype = 65007;
138+
optional string castkey = 65008;
139+
optional string castvalue = 65009;
140+
141+
optional bool stdtime = 65010;
142+
optional bool stdduration = 65011;
143+
optional bool wktpointer = 65012;
144+
}

0 commit comments

Comments
 (0)