@@ -294,6 +294,7 @@ const ::uint32_t TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto::offsets
294294 ::_pbi::kInvalidFieldOffsetTag ,
295295 ::_pbi::kInvalidFieldOffsetTag ,
296296 ::_pbi::kInvalidFieldOffsetTag ,
297+ ::_pbi::kInvalidFieldOffsetTag ,
297298 PROTOBUF_FIELD_OFFSET (::google::firestore::v1::Value, _impl_.value_type_ ),
298299 ~0u , // no _has_bits_
299300 PROTOBUF_FIELD_OFFSET (::google::firestore::v1::ArrayValue, _internal_metadata_),
@@ -387,14 +388,14 @@ static const ::_pbi::MigrationSchema
387388 {0 , 10 , -1 , sizeof (::google::firestore::v1::Document_FieldsEntry_DoNotUse)},
388389 {12 , 24 , -1 , sizeof (::google::firestore::v1::Document)},
389390 {28 , -1 , -1 , sizeof (::google::firestore::v1::Value)},
390- {51 , -1 , -1 , sizeof (::google::firestore::v1::ArrayValue)},
391- {60 , 70 , -1 , sizeof (::google::firestore::v1::MapValue_FieldsEntry_DoNotUse)},
392- {72 , -1 , -1 , sizeof (::google::firestore::v1::MapValue)},
393- {81 , 91 , -1 , sizeof (::google::firestore::v1::Function_OptionsEntry_DoNotUse)},
394- {93 , -1 , -1 , sizeof (::google::firestore::v1::Function)},
395- {104 , 114 , -1 , sizeof (::google::firestore::v1::Pipeline_Stage_OptionsEntry_DoNotUse)},
396- {116 , -1 , -1 , sizeof (::google::firestore::v1::Pipeline_Stage)},
397- {127 , -1 , -1 , sizeof (::google::firestore::v1::Pipeline)},
391+ {52 , -1 , -1 , sizeof (::google::firestore::v1::ArrayValue)},
392+ {61 , 71 , -1 , sizeof (::google::firestore::v1::MapValue_FieldsEntry_DoNotUse)},
393+ {73 , -1 , -1 , sizeof (::google::firestore::v1::MapValue)},
394+ {82 , 92 , -1 , sizeof (::google::firestore::v1::Function_OptionsEntry_DoNotUse)},
395+ {94 , -1 , -1 , sizeof (::google::firestore::v1::Function)},
396+ {105 , 115 , -1 , sizeof (::google::firestore::v1::Pipeline_Stage_OptionsEntry_DoNotUse)},
397+ {117 , -1 , -1 , sizeof (::google::firestore::v1::Pipeline_Stage)},
398+ {128 , -1 , -1 , sizeof (::google::firestore::v1::Pipeline)},
398399};
399400
400401static const ::_pb::Message* const file_default_instances[] = {
@@ -421,7 +422,7 @@ const char descriptor_table_protodef_google_2ffirestore_2fv1_2fdocument_2eproto[
421422 " \030\003 \001 (\013 2\032 .google.protobuf.Timestamp\022 /\n\013 up"
422423 " date_time\030\004 \001 (\013 2\032 .google.protobuf.Timest"
423424 " amp\032 I\n\013 FieldsEntry\022\013\n\003 key\030\001 \001 (\t\022 )\n\005 value"
424- " \030\002 \001 (\013 2\032 .google.firestore.v1.Value:\002 8\001\"\301 "
425+ " \030\002 \001 (\013 2\032 .google.firestore.v1.Value:\002 8\001\"\345 "
425426 " \004\n\005 Value\022 0\n\n null_value\030\013 \001 (\016 2\032 .google.pr"
426427 " otobuf.NullValueH\000\022\027\n\r boolean_value\030\001 \001 ("
427428 " \010 H\000\022\027\n\r integer_value\030\002 \001 (\003 H\000\022\026\n\014 double_v"
@@ -436,30 +437,31 @@ const char descriptor_table_protodef_google_2ffirestore_2fv1_2fdocument_2eproto[
436437 " ue\030\023 \001 (\t H\000\022 7\n\016 function_value\030\024 \001 (\013 2\035 .goo"
437438 " gle.firestore.v1.FunctionH\000\022 7\n\016 pipeline_"
438439 " value\030\025 \001 (\013 2\035 .google.firestore.v1.Pipeli"
439- " neH\000 B\014\n\n value_type\" 8\n\n ArrayValue\022 *\n\006 valu"
440- " es\030\001 \003 (\013 2\032 .google.firestore.v1.Value\"\220\001\n "
441- " \010 MapValue\022 9\n\006 fields\030\001 \003 (\013 2).google.fires"
442- " tore.v1.MapValue.FieldsEntry\032 I\n\013 FieldsEn"
443- " try\022\013\n\003 key\030\001 \001 (\t\022 )\n\005 value\030\002 \001 (\013 2\032 .google"
444- " .firestore.v1.Value:\002 8\001\"\332\001\n\010 Function\022\021\n\004 "
445- " name\030\001 \001 (\t B\003\340 A\002\022 -\n\004 args\030\002 \003 (\013 2\032 .google.f"
446- " irestore.v1.ValueB\003\340 A\001\022 @\n\007 options\030\003 \003 (\013 2"
447- " *.google.firestore.v1.Function.OptionsEn"
448- " tryB\003\340 A\001\032 J\n\014 OptionsEntry\022\013\n\003 key\030\001 \001 (\t\022 )\n "
449- " \005 value\030\002 \001 (\013 2\032 .google.firestore.v1.Value"
450- " :\002 8\001\"\244\002\n\010 Pipeline\022 8\n\006 stages\030\001 \003 (\013 2#.goog"
451- " le.firestore.v1.Pipeline.StageB\003\340 A\002\032\335\001\n\005 "
452- " Stage\022\021\n\004 name\030\001 \001 (\t B\003\340 A\002\022 -\n\004 args\030\002 \003 (\013 2\032 "
453- " .google.firestore.v1.ValueB\003\340 A\001\022 F\n\007 optio"
454- " ns\030\003 \003 (\013 20.google.firestore.v1.Pipeline."
455- " Stage.OptionsEntryB\003\340 A\001\032 J\n\014 OptionsEntry\022 "
440+ " neH\000\022\"\n\030 variable_reference_value\030\026 \001 (\t H\000 "
441+ " B\014\n\n value_type\" 8\n\n ArrayValue\022 *\n\006 values\030\001 "
442+ " \003 (\013 2\032 .google.firestore.v1.Value\"\220\001\n\010 Map"
443+ " Value\022 9\n\006 fields\030\001 \003 (\013 2).google.firestore"
444+ " .v1.MapValue.FieldsEntry\032 I\n\013 FieldsEntry\022 "
456445 " \013\n\003 key\030\001 \001 (\t\022 )\n\005 value\030\002 \001 (\013 2\032 .google.fir"
457- " estore.v1.Value:\002 8\001 B\305\001\n\027 com.google.fires"
458- " tore.v1B\r DocumentProtoP\001 Z;cloud.google.c"
459- " om/go/firestore/apiv1/firestorepb;firest"
460- " orepb\242\002\004 GCFS\252\002\031 Google.Cloud.Firestore.V1"
461- " \312\002\031 Google\\ Cloud\\ Firestore\\ V1\352\002\034 Google::C"
462- " loud::Firestore::V1b\006 proto3"
446+ " estore.v1.Value:\002 8\001\"\332\001\n\010 Function\022\021\n\004 name"
447+ " \030\001 \001 (\t B\003\340 A\002\022 -\n\004 args\030\002 \003 (\013 2\032 .google.fires"
448+ " tore.v1.ValueB\003\340 A\001\022 @\n\007 options\030\003 \003 (\013 2*.go"
449+ " ogle.firestore.v1.Function.OptionsEntryB"
450+ " \003\340 A\001\032 J\n\014 OptionsEntry\022\013\n\003 key\030\001 \001 (\t\022 )\n\005 val"
451+ " ue\030\002 \001 (\013 2\032 .google.firestore.v1.Value:\002 8\001 "
452+ " \"\244\002\n\010 Pipeline\022 8\n\006 stages\030\001 \003 (\013 2#.google.f"
453+ " irestore.v1.Pipeline.StageB\003\340 A\002\032\335\001\n\005 Stag"
454+ " e\022\021\n\004 name\030\001 \001 (\t B\003\340 A\002\022 -\n\004 args\030\002 \003 (\013 2\032 .goo"
455+ " gle.firestore.v1.ValueB\003\340 A\001\022 F\n\007 options\030\003 "
456+ " \003 (\013 20.google.firestore.v1.Pipeline.Stag"
457+ " e.OptionsEntryB\003\340 A\001\032 J\n\014 OptionsEntry\022\013\n\003 k"
458+ " ey\030\001 \001 (\t\022 )\n\005 value\030\002 \001 (\013 2\032 .google.firesto"
459+ " re.v1.Value:\002 8\001 B\305\001\n\027 com.google.firestore"
460+ " .v1B\r DocumentProtoP\001 Z;cloud.google.com/g"
461+ " o/firestore/apiv1/firestorepb;firestorep"
462+ " b\242\002\004 GCFS\252\002\031 Google.Cloud.Firestore.V1\312\002\031 G"
463+ " oogle\\ Cloud\\ Firestore\\ V1\352\002\034 Google::Cloud"
464+ " ::Firestore::V1b\006 proto3"
463465};
464466static const ::_pbi::DescriptorTable* const descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_deps[4 ] =
465467 {
@@ -472,7 +474,7 @@ static ::absl::once_flag descriptor_table_google_2ffirestore_2fv1_2fdocument_2ep
472474const ::_pbi::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto = {
473475 false ,
474476 false ,
475- 1947 ,
477+ 1983 ,
476478 descriptor_table_protodef_google_2ffirestore_2fv1_2fdocument_2eproto,
477479 " google/firestore/v1/document.proto" ,
478480 &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
@@ -1066,6 +1068,9 @@ Value::Value(
10661068 case kPipelineValue :
10671069 _impl_.value_type_ .pipeline_value_ = CreateMaybeMessage<::google::firestore::v1::Pipeline>(arena, *from._impl_ .value_type_ .pipeline_value_ );
10681070 break ;
1071+ case kVariableReferenceValue :
1072+ new (&_impl_.value_type_ .variable_reference_value_ ) decltype (_impl_.value_type_ .variable_reference_value_ ){arena, from._impl_ .value_type_ .variable_reference_value_ };
1073+ break ;
10691074 }
10701075
10711076 // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Value)
@@ -1165,6 +1170,10 @@ void Value::clear_value_type() {
11651170 }
11661171 break ;
11671172 }
1173+ case kVariableReferenceValue : {
1174+ _impl_.value_type_ .variable_reference_value_ .Destroy ();
1175+ break ;
1176+ }
11681177 case VALUE_TYPE_NOT_SET: {
11691178 break ;
11701179 }
@@ -1192,15 +1201,15 @@ const char* Value::_InternalParse(
11921201
11931202
11941203PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1195- const ::_pbi::TcParseTable<0 , 14 , 6 , 90 , 2 > Value::_table_ = {
1204+ const ::_pbi::TcParseTable<0 , 15 , 6 , 114 , 2 > Value::_table_ = {
11961205 {
11971206 0 , // no _has_bits_
11981207 0 , // no _extensions_
1199- 21 , 0 , // max_field_number, fast_idx_mask
1208+ 22 , 0 , // max_field_number, fast_idx_mask
12001209 offsetof (decltype (_table_), field_lookup_table),
1201- 4292933704 , // skipmap
1210+ 4290836552 , // skipmap
12021211 offsetof (decltype (_table_), field_entries),
1203- 14 , // num_field_entries
1212+ 15 , // num_field_entries
12041213 6 , // num_aux_entries
12051214 offsetof (decltype (_table_), aux_entries),
12061215 &_Value_default_instance_._instance ,
@@ -1252,6 +1261,9 @@ const ::_pbi::TcParseTable<0, 14, 6, 90, 2> Value::_table_ = {
12521261 // .google.firestore.v1.Pipeline pipeline_value = 21;
12531262 {PROTOBUF_FIELD_OFFSET (Value, _impl_.value_type_ .pipeline_value_ ), _Internal::kOneofCaseOffset + 0 , 5 ,
12541263 (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable )},
1264+ // string variable_reference_value = 22;
1265+ {PROTOBUF_FIELD_OFFSET (Value, _impl_.value_type_ .variable_reference_value_ ), _Internal::kOneofCaseOffset + 0 , 0 ,
1266+ (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString )},
12551267 }}, {{
12561268 {::_pbi::TcParser::GetTable<::google::firestore::v1::MapValue>()},
12571269 {::_pbi::TcParser::GetTable<::google::type::LatLng>()},
@@ -1260,11 +1272,12 @@ const ::_pbi::TcParseTable<0, 14, 6, 90, 2> Value::_table_ = {
12601272 {::_pbi::TcParser::GetTable<::google::firestore::v1::Function>()},
12611273 {::_pbi::TcParser::GetTable<::google::firestore::v1::Pipeline>()},
12621274 }}, {{
1263- " \31\0\0\0\17\0\0\0\0\0\14\0\25\0\0\0 "
1275+ " \31\0\0\0\17\0\0\0\0\0\14\0\25\0\0\30 "
12641276 " google.firestore.v1.Value"
12651277 " reference_value"
12661278 " string_value"
12671279 " field_reference_value"
1280+ " variable_reference_value"
12681281 }},
12691282};
12701283
@@ -1362,6 +1375,13 @@ ::uint8_t* Value::_InternalSerialize(
13621375 _Internal::pipeline_value (this ).GetCachedSize (), target, stream);
13631376 break ;
13641377 }
1378+ case kVariableReferenceValue : {
1379+ const std::string& _s = this ->_internal_variable_reference_value ();
1380+ ::google::protobuf::internal::WireFormatLite::VerifyUtf8String (
1381+ _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Value.variable_reference_value");
1382+ target = stream->WriteStringMaybeAliased (22 , _s, target);
1383+ break ;
1384+ }
13651385 default :
13661386 break ;
13671387 }
@@ -1465,6 +1485,12 @@ ::size_t Value::ByteSizeLong() const {
14651485 2 + ::google::protobuf::internal::WireFormatLite::MessageSize (*_impl_.value_type_ .pipeline_value_ );
14661486 break ;
14671487 }
1488+ // string variable_reference_value = 22;
1489+ case kVariableReferenceValue : {
1490+ total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize (
1491+ this ->_internal_variable_reference_value ());
1492+ break ;
1493+ }
14681494 case VALUE_TYPE_NOT_SET: {
14691495 break ;
14701496 }
@@ -1551,6 +1577,10 @@ void Value::MergeImpl(::google::protobuf::Message& to_msg, const ::google::proto
15511577 from._internal_pipeline_value ());
15521578 break ;
15531579 }
1580+ case kVariableReferenceValue : {
1581+ _this->_internal_set_variable_reference_value (from._internal_variable_reference_value ());
1582+ break ;
1583+ }
15541584 case VALUE_TYPE_NOT_SET: {
15551585 break ;
15561586 }
0 commit comments