@@ -257,7 +257,8 @@ public void mapField_accessingProto() {
257257 "testField" ,
258258 mapType (
259259 bytesType (),
260- protoType ("com.google.cloud.bigtable.data.v2.test.Singer" ))))),
260+ protoType (
261+ "com.google.cloud.bigtable.data.v2.test.Singer" , "my_bundle" ))))),
261262 Collections .singletonList (
262263 mapValue (mapElement (bytesValue ("key" ), bytesValue (singer .toByteArray ())))));
263264 HashMap <ByteString , Singer > expectedMap = new HashMap <>();
@@ -280,15 +281,17 @@ public void mapField_accessingProto() {
280281 "testField" ,
281282 SqlType .mapOf (
282283 SqlType .bytes (),
283- SchemalessProto .create ("com.google.cloud.bigtable.data.v2.test.Singer" ))));
284+ SchemalessProto .create (
285+ "com.google.cloud.bigtable.data.v2.test.Singer" , "my_bundle" ))));
284286 assertThrows (
285287 UnsupportedOperationException .class ,
286288 () ->
287289 structWithMap .getMap (
288290 0 ,
289291 SqlType .mapOf (
290292 SqlType .bytes (),
291- SchemalessProto .create ("com.google.cloud.bigtable.data.v2.test.Singer" ))));
293+ SchemalessProto .create (
294+ "com.google.cloud.bigtable.data.v2.test.Singer" , "my_bundle" ))));
292295 assertThrows (
293296 IllegalStateException .class ,
294297 () ->
@@ -319,7 +322,8 @@ public void mapField_accessingEnum() {
319322 "testField" ,
320323 mapType (
321324 bytesType (),
322- enumType ("com.google.cloud.bigtable.data.v2.test.Genre" ))))),
325+ enumType (
326+ "com.google.cloud.bigtable.data.v2.test.Genre" , "my_bundle" ))))),
323327 Collections .singletonList (mapValue (mapElement (bytesValue ("key" ), int64Value (0 )))));
324328 HashMap <ByteString , Genre > expectedMap = new HashMap <>();
325329 expectedMap .put (ByteString .copyFromUtf8 ("key" ), Genre .POP );
@@ -340,31 +344,35 @@ public void mapField_accessingEnum() {
340344 "testField" ,
341345 SqlType .mapOf (
342346 SqlType .bytes (),
343- SchemalessEnum .create ("com.google.cloud.bigtable.data.v2.test.Genre" ))));
347+ SchemalessEnum .create (
348+ "com.google.cloud.bigtable.data.v2.test.Genre" , "my_bundle" ))));
344349 assertThrows (
345350 UnsupportedOperationException .class ,
346351 () ->
347352 structWithMap .getMap (
348353 0 ,
349354 SqlType .mapOf (
350355 SqlType .bytes (),
351- SchemalessEnum .create ("com.google.cloud.bigtable.data.v2.test.Genre" ))));
356+ SchemalessEnum .create (
357+ "com.google.cloud.bigtable.data.v2.test.Genre" , "my_bundle" ))));
352358 assertThrows (
353359 UnsupportedOperationException .class ,
354360 () ->
355361 structWithMap .getMap (
356362 "testField" ,
357363 SqlType .mapOf (
358364 SqlType .bytes (),
359- SchemalessEnum .create ("com.google.cloud.bigtable.data.v2.test.Genre" ))));
365+ SchemalessEnum .create (
366+ "com.google.cloud.bigtable.data.v2.test.Genre" , "my_bundle" ))));
360367 assertThrows (
361368 UnsupportedOperationException .class ,
362369 () ->
363370 structWithMap .getMap (
364371 0 ,
365372 SqlType .mapOf (
366373 SqlType .bytes (),
367- SchemalessEnum .create ("com.google.cloud.bigtable.data.v2.test.Genre" ))));
374+ SchemalessEnum .create (
375+ "com.google.cloud.bigtable.data.v2.test.Genre" , "my_bundle" ))));
368376 assertThrows (
369377 IllegalStateException .class ,
370378 () -> structWithMap .getMap ("testField" , SqlType .mapOf (SqlType .bytes (), SqlType .bytes ())));
@@ -481,8 +489,8 @@ public static List<Object[]> parameters() {
481489 structField ("stringField" , stringType ()),
482490 structField ("intField" , int64Type ()),
483491 structField ("listField" , arrayType (stringType ())),
484- structField ("protoField" , protoType ("MyMessage" )),
485- structField ("enumField" , enumType ("MyEnum" ))))),
492+ structField ("protoField" , protoType ("MyMessage" , "my_bundle" )),
493+ structField ("enumField" , enumType ("MyEnum" , "other_bundle" ))))),
486494 Collections .singletonList (
487495 arrayValue (
488496 stringValue ("test" ),
@@ -501,8 +509,8 @@ public static List<Object[]> parameters() {
501509 structField ("stringField" , stringType ()),
502510 structField ("intField" , int64Type ()),
503511 structField ("listField" , arrayType (stringType ())),
504- structField ("protoField" , protoType ("MyMessage" )),
505- structField ("enumField" , enumType ("MyEnum" )))),
512+ structField ("protoField" , protoType ("MyMessage" , "my_bundle" )),
513+ structField ("enumField" , enumType ("MyEnum" , "other_bundle" )))),
506514 arrayValue (
507515 stringValue ("test" ),
508516 int64Value (100 ),
@@ -686,7 +694,8 @@ public static List<Object[]> parameters() {
686694 {
687695 Collections .singletonList (
688696 columnMetadata (
689- "testField" , protoType ("com.google.cloud.bigtable.data.v2.test.Singer" ))),
697+ "testField" ,
698+ protoType ("com.google.cloud.bigtable.data.v2.test.Singer" , "my_bundle" ))),
690699 Collections .singletonList (
691700 bytesValue (
692701 Singer .newBuilder ()
@@ -707,7 +716,9 @@ public static List<Object[]> parameters() {
707716 Collections .singletonList (
708717 columnMetadata (
709718 "testField" ,
710- arrayType (protoType ("com.google.cloud.bigtable.data.v2.test.Singer" )))),
719+ arrayType (
720+ protoType (
721+ "com.google.cloud.bigtable.data.v2.test.Singer" , "my_bundle" )))),
711722 Collections .singletonList (
712723 arrayValue (
713724 bytesValue (
@@ -743,7 +754,8 @@ public static List<Object[]> parameters() {
743754 "testField" ,
744755 mapType (
745756 bytesType (),
746- protoType ("com.google.cloud.bigtable.data.v2.test.Singer" )))),
757+ protoType (
758+ "com.google.cloud.bigtable.data.v2.test.Singer" , "my_bundle" )))),
747759 Collections .singletonList (
748760 mapValue (
749761 mapElement (
@@ -791,7 +803,8 @@ public static List<Object[]> parameters() {
791803 {
792804 Collections .singletonList (
793805 columnMetadata (
794- "testField" , enumType ("com.google.cloud.bigtable.data.v2.test.Genre" ))),
806+ "testField" ,
807+ enumType ("com.google.cloud.bigtable.data.v2.test.Genre" , "my_bundle" ))),
795808 Collections .singletonList (int64Value (1 )),
796809 0 ,
797810 "testField" ,
@@ -806,7 +819,8 @@ public static List<Object[]> parameters() {
806819 Collections .singletonList (
807820 columnMetadata (
808821 "testField" ,
809- arrayType (enumType ("com.google.cloud.bigtable.data.v2.test.Genre" )))),
822+ arrayType (
823+ enumType ("com.google.cloud.bigtable.data.v2.test.Genre" , "my_bundle" )))),
810824 Collections .singletonList (arrayValue (nullValue (), int64Value (2 ), int64Value (100 ))),
811825 0 ,
812826 "testField" ,
@@ -824,7 +838,8 @@ public static List<Object[]> parameters() {
824838 columnMetadata (
825839 "testField" ,
826840 mapType (
827- bytesType (), enumType ("com.google.cloud.bigtable.data.v2.test.Genre" )))),
841+ bytesType (),
842+ enumType ("com.google.cloud.bigtable.data.v2.test.Genre" , "my_bundle" )))),
828843 Collections .singletonList (
829844 mapValue (
830845 mapElement (bytesValue ("foo" ), int64Value (1 )),
0 commit comments