Skip to content

Commit 7d0520b

Browse files
authored
feat: Make generated ProtoMessage and ProtoEnum classes final (#2349)
1 parent 00828d5 commit 7d0520b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/sidekick/internal/dart/templates/lib/enum.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717
{{#Codec.DocLines}}
1818
{{{.}}}
1919
{{/Codec.DocLines}}
20-
class {{Codec.Name}} extends ProtoEnum {
20+
final class {{Codec.Name}} extends ProtoEnum {
2121
{{#Values}}
2222
{{#Codec.DocLines}}
2323
{{{.}}}

internal/sidekick/internal/dart/templates/lib/message.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818
{{#Codec.DocLines}}
1919
{{{.}}}
2020
{{/Codec.DocLines}}
21-
class {{Codec.Name}} extends ProtoMessage {
21+
final class {{Codec.Name}} extends ProtoMessage {
2222
static const String fullyQualifiedName = '{{Codec.QualifiedName}}';
2323
2424
{{#Fields}}

0 commit comments

Comments
 (0)