@Override public int encodedSize(RedactedChild value) { return (value.a != null ? ProtoAdapter.STRING.encodedSizeWithTag(1, value.a) : 0) + (value.b != null ? Redacted.ADAPTER.encodedSizeWithTag(2, value.b) : 0) + (value.c != null ? NotRedacted.ADAPTER.encodedSizeWithTag(3, value.c) : 0) + value.unknownFields().size(); }
@Override public int encodedSize(FooBar value) { return (value.foo != null ? ProtoAdapter.INT32.encodedSizeWithTag(1, value.foo) : 0) + (value.bar != null ? ProtoAdapter.STRING.encodedSizeWithTag(2, value.bar) : 0) + (value.baz != null ? Nested.ADAPTER.encodedSizeWithTag(3, value.baz) : 0) + (value.qux != null ? ProtoAdapter.UINT64.encodedSizeWithTag(4, value.qux) : 0) + ProtoAdapter.FLOAT.asRepeated().encodedSizeWithTag(5, value.fred) + (value.daisy != null ? ProtoAdapter.DOUBLE.encodedSizeWithTag(6, value.daisy) : 0) + FooBar.ADAPTER.asRepeated().encodedSizeWithTag(7, value.nested) + (value.ext != null ? FooBarBazEnum.ADAPTER.encodedSizeWithTag(101, value.ext) : 0) + FooBarBazEnum.ADAPTER.asRepeated().encodedSizeWithTag(102, value.rep) + value.unknownFields().size(); }
@Override public int encodedSize(RedactedRequired value) { return ProtoAdapter.STRING.encodedSizeWithTag(1, value.a) + value.unknownFields().size(); }
@Override public int encodedSize(Phone value) { return (value.number != null ? ProtoAdapter.STRING.encodedSizeWithTag(1, value.number) : 0) + value.unknownFields().size(); }
@Override public int encodedSize(RedactedExtension value) { return (value.d != null ? ProtoAdapter.STRING.encodedSizeWithTag(1, value.d) : 0) + (value.e != null ? ProtoAdapter.STRING.encodedSizeWithTag(2, value.e) : 0) + value.unknownFields().size(); }