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) {
294294
295295// Helpers
296296
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 () {
298303 return absl::get<SharedMessage<google_firestore_v1_Value>>(value_);
299304}
300305
Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ class FieldValueInternal {
7474 explicit FieldValueInternal (FieldValue::Type type, T value)
7575 : type_{type}, value_{std::move (value)} {}
7676
77+ /* * Returns the underlying value as a google_firestore_v1_Value proto. */
78+ const nanopb::SharedMessage<google_firestore_v1_Value>& GetProtoValue () const ;
79+
7780 /* * Returns the underlying value as a google_firestore_v1_Value proto. */
7881 nanopb::SharedMessage<google_firestore_v1_Value>& GetProtoValue ();
7982
You can’t perform that action at this time.
0 commit comments