Skip to content

Commit 2000ea5

Browse files
committed
Fixed some bugs in conformance
1 parent cdc9cea commit 2000ea5

File tree

19 files changed

+666
-127
lines changed

19 files changed

+666
-127
lines changed

protobuf/protobuf-core/src/commonMain/generated-code/kotlin-multiplatform/com/google/protobuf/kotlin/_rpc_internal/Any.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public class AnyInternal: com.google.protobuf.kotlin.Any, kotlinx.rpc.protobuf.i
3030
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
3131
com.google.protobuf.kotlin.AnyInternal.decodeWith(msg, it)
3232
}
33-
msg.checkRequiredFields()
3433
return msg
3534
}
3635
}
@@ -81,6 +80,8 @@ public fun com.google.protobuf.kotlin.AnyInternal.Companion.decodeWith(msg: com.
8180
}
8281
}
8382
}
83+
84+
msg.checkRequiredFields()
8485
}
8586

8687
private fun com.google.protobuf.kotlin.AnyInternal.computeSize(): Int {

protobuf/protobuf-core/src/commonMain/generated-code/kotlin-multiplatform/com/google/protobuf/kotlin/_rpc_internal/Api.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public class ApiInternal: com.google.protobuf.kotlin.Api, kotlinx.rpc.protobuf.i
3939
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
4040
com.google.protobuf.kotlin.ApiInternal.decodeWith(msg, it)
4141
}
42-
msg.checkRequiredFields()
4342
return msg
4443
}
4544
}
@@ -79,7 +78,6 @@ public class MethodInternal: com.google.protobuf.kotlin.Method, kotlinx.rpc.prot
7978
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
8079
com.google.protobuf.kotlin.MethodInternal.decodeWith(msg, it)
8180
}
82-
msg.checkRequiredFields()
8381
return msg
8482
}
8583
}
@@ -114,7 +112,6 @@ public class MixinInternal: com.google.protobuf.kotlin.Mixin, kotlinx.rpc.protob
114112
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
115113
com.google.protobuf.kotlin.MixinInternal.decodeWith(msg, it)
116114
}
117-
msg.checkRequiredFields()
118115
return msg
119116
}
120117
}
@@ -248,6 +245,8 @@ public fun com.google.protobuf.kotlin.ApiInternal.Companion.decodeWith(msg: com.
248245
}
249246
}
250247
}
248+
249+
msg.checkRequiredFields()
251250
}
252251

253252
private fun com.google.protobuf.kotlin.ApiInternal.computeSize(): Int {
@@ -370,6 +369,8 @@ public fun com.google.protobuf.kotlin.MethodInternal.Companion.decodeWith(msg: c
370369
}
371370
}
372371
}
372+
373+
msg.checkRequiredFields()
373374
}
374375

375376
private fun com.google.protobuf.kotlin.MethodInternal.computeSize(): Int {
@@ -445,6 +446,8 @@ public fun com.google.protobuf.kotlin.MixinInternal.Companion.decodeWith(msg: co
445446
}
446447
}
447448
}
449+
450+
msg.checkRequiredFields()
448451
}
449452

450453
private fun com.google.protobuf.kotlin.MixinInternal.computeSize(): Int {

protobuf/protobuf-core/src/commonMain/generated-code/kotlin-multiplatform/com/google/protobuf/kotlin/_rpc_internal/Duration.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public class DurationInternal: com.google.protobuf.kotlin.Duration, kotlinx.rpc.
3030
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
3131
com.google.protobuf.kotlin.DurationInternal.decodeWith(msg, it)
3232
}
33-
msg.checkRequiredFields()
3433
return msg
3534
}
3635
}
@@ -81,6 +80,8 @@ public fun com.google.protobuf.kotlin.DurationInternal.Companion.decodeWith(msg:
8180
}
8281
}
8382
}
83+
84+
msg.checkRequiredFields()
8485
}
8586

8687
private fun com.google.protobuf.kotlin.DurationInternal.computeSize(): Int {

protobuf/protobuf-core/src/commonMain/generated-code/kotlin-multiplatform/com/google/protobuf/kotlin/_rpc_internal/Empty.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ public class EmptyInternal: com.google.protobuf.kotlin.Empty, kotlinx.rpc.protob
2727
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
2828
com.google.protobuf.kotlin.EmptyInternal.decodeWith(msg, it)
2929
}
30-
msg.checkRequiredFields()
3130
return msg
3231
}
3332
}
@@ -64,6 +63,8 @@ public fun com.google.protobuf.kotlin.EmptyInternal.Companion.decodeWith(msg: co
6463
}
6564
}
6665
}
66+
67+
msg.checkRequiredFields()
6768
}
6869

6970
private fun com.google.protobuf.kotlin.EmptyInternal.computeSize(): Int {

protobuf/protobuf-core/src/commonMain/generated-code/kotlin-multiplatform/com/google/protobuf/kotlin/_rpc_internal/FieldMask.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public class FieldMaskInternal: com.google.protobuf.kotlin.FieldMask, kotlinx.rp
2929
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
3030
com.google.protobuf.kotlin.FieldMaskInternal.decodeWith(msg, it)
3131
}
32-
msg.checkRequiredFields()
3332
return msg
3433
}
3534
}
@@ -75,6 +74,8 @@ public fun com.google.protobuf.kotlin.FieldMaskInternal.Companion.decodeWith(msg
7574
}
7675
}
7776
}
77+
78+
msg.checkRequiredFields()
7879
}
7980

8081
private fun com.google.protobuf.kotlin.FieldMaskInternal.computeSize(): Int {

protobuf/protobuf-core/src/commonMain/generated-code/kotlin-multiplatform/com/google/protobuf/kotlin/_rpc_internal/SourceContext.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public class SourceContextInternal: com.google.protobuf.kotlin.SourceContext, ko
2929
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
3030
com.google.protobuf.kotlin.SourceContextInternal.decodeWith(msg, it)
3131
}
32-
msg.checkRequiredFields()
3332
return msg
3433
}
3534
}
@@ -72,6 +71,8 @@ public fun com.google.protobuf.kotlin.SourceContextInternal.Companion.decodeWith
7271
}
7372
}
7473
}
74+
75+
msg.checkRequiredFields()
7576
}
7677

7778
private fun com.google.protobuf.kotlin.SourceContextInternal.computeSize(): Int {

protobuf/protobuf-core/src/commonMain/generated-code/kotlin-multiplatform/com/google/protobuf/kotlin/_rpc_internal/Struct.kt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public class StructInternal: com.google.protobuf.kotlin.Struct, kotlinx.rpc.prot
4444
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
4545
com.google.protobuf.kotlin.StructInternal.decodeWith(msg, it)
4646
}
47-
msg.checkRequiredFields()
4847
return msg
4948
}
5049
}
@@ -78,7 +77,6 @@ public class ValueInternal: com.google.protobuf.kotlin.Value, kotlinx.rpc.protob
7877
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
7978
com.google.protobuf.kotlin.ValueInternal.decodeWith(msg, it)
8079
}
81-
msg.checkRequiredFields()
8280
return msg
8381
}
8482
}
@@ -112,7 +110,6 @@ public class ListValueInternal: com.google.protobuf.kotlin.ListValue, kotlinx.rp
112110
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
113111
com.google.protobuf.kotlin.ListValueInternal.decodeWith(msg, it)
114112
}
115-
msg.checkRequiredFields()
116113
return msg
117114
}
118115
}
@@ -181,6 +178,8 @@ public fun com.google.protobuf.kotlin.StructInternal.Companion.decodeWith(msg: c
181178
}
182179
}
183180
}
181+
182+
msg.checkRequiredFields()
184183
}
185184

186185
private fun com.google.protobuf.kotlin.StructInternal.computeSize(): Int {
@@ -293,6 +292,8 @@ public fun com.google.protobuf.kotlin.ValueInternal.Companion.decodeWith(msg: co
293292
}
294293
}
295294
}
295+
296+
msg.checkRequiredFields()
296297
}
297298

298299
private fun com.google.protobuf.kotlin.ValueInternal.computeSize(): Int {
@@ -367,6 +368,8 @@ public fun com.google.protobuf.kotlin.ListValueInternal.Companion.decodeWith(msg
367368
}
368369
}
369370
}
371+
372+
msg.checkRequiredFields()
370373
}
371374

372375
private fun com.google.protobuf.kotlin.ListValueInternal.computeSize(): Int {
@@ -425,6 +428,8 @@ public fun com.google.protobuf.kotlin.StructInternal.FieldsEntryInternal.Compani
425428
}
426429
}
427430
}
431+
432+
msg.checkRequiredFields()
428433
}
429434

430435
private fun com.google.protobuf.kotlin.StructInternal.FieldsEntryInternal.computeSize(): Int {

protobuf/protobuf-core/src/commonMain/generated-code/kotlin-multiplatform/com/google/protobuf/kotlin/_rpc_internal/Timestamp.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public class TimestampInternal: com.google.protobuf.kotlin.Timestamp, kotlinx.rp
3030
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
3131
com.google.protobuf.kotlin.TimestampInternal.decodeWith(msg, it)
3232
}
33-
msg.checkRequiredFields()
3433
return msg
3534
}
3635
}
@@ -81,6 +80,8 @@ public fun com.google.protobuf.kotlin.TimestampInternal.Companion.decodeWith(msg
8180
}
8281
}
8382
}
83+
84+
msg.checkRequiredFields()
8485
}
8586

8687
private fun com.google.protobuf.kotlin.TimestampInternal.computeSize(): Int {

protobuf/protobuf-core/src/commonMain/generated-code/kotlin-multiplatform/com/google/protobuf/kotlin/_rpc_internal/Type.kt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public class TypeInternal: com.google.protobuf.kotlin.Type, kotlinx.rpc.protobuf
3939
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
4040
com.google.protobuf.kotlin.TypeInternal.decodeWith(msg, it)
4141
}
42-
msg.checkRequiredFields()
4342
return msg
4443
}
4544
}
@@ -82,7 +81,6 @@ public class FieldInternal: com.google.protobuf.kotlin.Field, kotlinx.rpc.protob
8281
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
8382
com.google.protobuf.kotlin.FieldInternal.decodeWith(msg, it)
8483
}
85-
msg.checkRequiredFields()
8684
return msg
8785
}
8886
}
@@ -125,7 +123,6 @@ public class EnumInternal: com.google.protobuf.kotlin.Enum, kotlinx.rpc.protobuf
125123
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
126124
com.google.protobuf.kotlin.EnumInternal.decodeWith(msg, it)
127125
}
128-
msg.checkRequiredFields()
129126
return msg
130127
}
131128
}
@@ -161,7 +158,6 @@ public class EnumValueInternal: com.google.protobuf.kotlin.EnumValue, kotlinx.rp
161158
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
162159
com.google.protobuf.kotlin.EnumValueInternal.decodeWith(msg, it)
163160
}
164-
msg.checkRequiredFields()
165161
return msg
166162
}
167163
}
@@ -200,7 +196,6 @@ public class OptionInternal: com.google.protobuf.kotlin.Option, kotlinx.rpc.prot
200196
kotlinx.rpc.protobuf.internal.checkForPlatformDecodeException {
201197
com.google.protobuf.kotlin.OptionInternal.decodeWith(msg, it)
202198
}
203-
msg.checkRequiredFields()
204199
return msg
205200
}
206201
}
@@ -341,6 +336,8 @@ public fun com.google.protobuf.kotlin.TypeInternal.Companion.decodeWith(msg: com
341336
}
342337
}
343338
}
339+
340+
msg.checkRequiredFields()
344341
}
345342

346343
private fun com.google.protobuf.kotlin.TypeInternal.computeSize(): Int {
@@ -487,6 +484,8 @@ public fun com.google.protobuf.kotlin.FieldInternal.Companion.decodeWith(msg: co
487484
}
488485
}
489486
}
487+
488+
msg.checkRequiredFields()
490489
}
491490

492491
private fun com.google.protobuf.kotlin.FieldInternal.computeSize(): Int {
@@ -629,6 +628,8 @@ public fun com.google.protobuf.kotlin.EnumInternal.Companion.decodeWith(msg: com
629628
}
630629
}
631630
}
631+
632+
msg.checkRequiredFields()
632633
}
633634

634635
private fun com.google.protobuf.kotlin.EnumInternal.computeSize(): Int {
@@ -715,6 +716,8 @@ public fun com.google.protobuf.kotlin.EnumValueInternal.Companion.decodeWith(msg
715716
}
716717
}
717718
}
719+
720+
msg.checkRequiredFields()
718721
}
719722

720723
private fun com.google.protobuf.kotlin.EnumValueInternal.computeSize(): Int {
@@ -781,6 +784,8 @@ public fun com.google.protobuf.kotlin.OptionInternal.Companion.decodeWith(msg: c
781784
}
782785
}
783786
}
787+
788+
msg.checkRequiredFields()
784789
}
785790

786791
private fun com.google.protobuf.kotlin.OptionInternal.computeSize(): Int {

0 commit comments

Comments
 (0)