File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,12 @@ std::string Describe(Type type) {
294
294
295
295
// Helpers
296
296
297
- SharedMessage<google_firestore_v1_Value>& GetProtoValue () {
297
+ const SharedMessage<google_firestore_v1_Value>&
298
+ FieldValueInternal::GetProtoValue () const {
299
+ return absl::get<SharedMessage<google_firestore_v1_Value>>(value_);
300
+ }
301
+
302
+ SharedMessage<google_firestore_v1_Value>& FieldValueInternal::GetProtoValue () {
298
303
return absl::get<SharedMessage<google_firestore_v1_Value>>(value_);
299
304
}
300
305
Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ class FieldValueInternal {
74
74
explicit FieldValueInternal (FieldValue::Type type, T value)
75
75
: type_{type}, value_{std::move (value)} {}
76
76
77
+ /* * Returns the underlying value as a google_firestore_v1_Value proto. */
78
+ const nanopb::SharedMessage<google_firestore_v1_Value>& GetProtoValue () const ;
79
+
77
80
/* * Returns the underlying value as a google_firestore_v1_Value proto. */
78
81
nanopb::SharedMessage<google_firestore_v1_Value>& GetProtoValue ();
79
82
You can’t perform that action at this time.
0 commit comments