Skip to content

Commit 17ce8be

Browse files
committed
Add float support.
1 parent 1c646aa commit 17ce8be

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

encoders/firebase-encoders-proto/src/main/java/com/google/firebase/encoders/proto/ProtobufValueEncoderContext.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ public ValueEncoderContext add(@Nullable String value) throws IOException {
4747
return this;
4848
}
4949

50+
@NonNull
51+
@Override
52+
public ValueEncoderContext add(float value) throws IOException {
53+
checkNotUsed();
54+
objEncoderCtx.add(field, value);
55+
return this;
56+
}
57+
5058
@NonNull
5159
@Override
5260
public ValueEncoderContext add(double value) throws IOException {

0 commit comments

Comments
 (0)