Home
last modified time | relevance | path

Searched refs:MapField (Results 1 – 25 of 44) sorted by relevance

12

/external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/
DMapUnittestProto3.cs231 private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
232 …= new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0),…
233 private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
235 public pbc::MapField<int, int> MapInt32Int32 {
241 private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
242 …= new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForInt64(16, …
243 private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
245 public pbc::MapField<long, long> MapInt64Int64 {
251 private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
252 …= new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16,…
[all …]
DUnittestWellKnownTypes.cs2213 …private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>.Codec _map_…
2214 …= new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>.Codec(pb::FieldCodec.ForInt32…
2215 …private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any> anyField_ = new pb…
2217 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any> AnyField {
2223 …private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>.Codec _map_…
2224 …= new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>.Codec(pb::FieldCodec.ForInt32…
2225 …private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api> apiField_ = new pb…
2227 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api> ApiField {
2233 …private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration>.Codec …
2234 …= new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration>.Codec(pb::FieldCodec.For…
[all …]
DTestMessagesProto3.cs887 private static readonly pbc::MapField<int, int>.Codec _map_mapInt32Int32_codec
888 …= new pbc::MapField<int, int>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForInt32(16, 0),…
889 private readonly pbc::MapField<int, int> mapInt32Int32_ = new pbc::MapField<int, int>();
894 public pbc::MapField<int, int> MapInt32Int32 {
900 private static readonly pbc::MapField<long, long>.Codec _map_mapInt64Int64_codec
901 …= new pbc::MapField<long, long>.Codec(pb::FieldCodec.ForInt64(8, 0L), pb::FieldCodec.ForInt64(16, …
902 private readonly pbc::MapField<long, long> mapInt64Int64_ = new pbc::MapField<long, long>();
904 public pbc::MapField<long, long> MapInt64Int64 {
910 private static readonly pbc::MapField<uint, uint>.Codec _map_mapUint32Uint32_codec
911 …= new pbc::MapField<uint, uint>.Codec(pb::FieldCodec.ForUInt32(8, 0), pb::FieldCodec.ForUInt32(16,…
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs52 var map = new MapField<string, ForeignMessage> { { "x", message } }; in Clone_ClonesMessages()
68 var map = new MapField<int, T>(); in TestNullValues()
79 var map = new MapField<string, ForeignMessage>(); in Add_ForbidsNullKeys()
86 var map = new MapField<string, ForeignMessage>(); in Indexer_ForbidsNullKeys()
93 var map = new MapField<string, string>(); in AddPreservesInsertionOrder()
106 var map1 = new MapField<string, string>(); in EqualityIsOrderInsensitive()
110 var map2 = new MapField<string, string>(); in EqualityIsOrderInsensitive()
120 var map1 = new MapField<string, string>(); in EqualityIsKeySensitive()
124 var map2 = new MapField<string, string>(); in EqualityIsKeySensitive()
134 var map = new MapField<string, string>(); in Equality_Simple()
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs52 var map = new MapField<string, ForeignMessage> { { "x", message } }; in Clone_ClonesMessages()
68 var map = new MapField<int, T>(); in TestNullValues()
79 var map = new MapField<string, ForeignMessage>(); in Add_ForbidsNullKeys()
86 var map = new MapField<string, ForeignMessage>(); in Indexer_ForbidsNullKeys()
93 var map = new MapField<string, string>(); in AddPreservesInsertionOrder()
106 var map1 = new MapField<string, string>(); in EqualityIsOrderInsensitive()
110 var map2 = new MapField<string, string>(); in EqualityIsOrderInsensitive()
120 var map1 = new MapField<string, string>(); in EqualityIsKeySensitive()
124 var map2 = new MapField<string, string>(); in EqualityIsKeySensitive()
134 var map = new MapField<string, string>(); in Equality_Simple()
[all …]
/external/protobuf/php/tests/
Dundefined_test.php636 $map_uint32_uint32 = new MapField(GPBType::UINT32, GPBType::UINT32);
647 $map_int32_message = new MapField(GPBType::INT32,
668 $arr = new MapField(GPBType::INT32, GPBType::INT32);
677 $arr = new MapField(GPBType::INT32, GPBType::INT32);
686 $arr = new MapField(GPBType::INT32, GPBType::INT32);
695 $arr = new MapField(GPBType::INT32, GPBType::INT32);
704 $arr = new MapField(GPBType::UINT32, GPBType::UINT32);
713 $arr = new MapField(GPBType::UINT32, GPBType::UINT32);
722 $arr = new MapField(GPBType::UINT32, GPBType::UINT32);
731 $arr = new MapField(GPBType::UINT32, GPBType::UINT32);
[all …]
Dmap_field_test.php6 use Google\Protobuf\Internal\MapField; alias
17 $arr = new MapField(GPBType::INT32, GPBType::INT32);
61 $arr = new MapField(GPBType::INT32, GPBType::INT32);
83 $arr = new MapField(GPBType::UINT32, GPBType::UINT32);
148 $arr = new MapField(GPBType::INT64, GPBType::INT64);
205 $arr = new MapField(GPBType::UINT64, GPBType::UINT64);
256 $arr = new MapField(GPBType::INT32, GPBType::FLOAT);
278 $arr = new MapField(GPBType::INT32, GPBType::DOUBLE);
300 $arr = new MapField(GPBType::BOOL, GPBType::BOOL);
360 $arr = new MapField(GPBType::STRING, GPBType::STRING);
[all …]
Dgenerated_service_test.php7 use Google\Protobuf\Internal\MapField; alias
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DMapFieldSchemaFull.java39 return ((MapField<?, ?>) mapField).getMutableMap(); in forMutableMapData()
44 return ((MapField<?, ?>) mapField).getMap(); in forMapData()
49 return !((MapField<?, ?>) mapField).isMutable(); in isImmutable()
54 ((MapField<?, ?>) mapField).makeImmutable(); in toImmutable()
60 return MapField.newMapField((MapEntry<?, ?>) mapDefaultEntry); in newMapField()
75 MapField<K, V> mine = (MapField<K, V>) destMapField; in mergeFromFull()
76 MapField<K, V> other = (MapField<K, V>) srcMapField; in mergeFromFull()
97 Map<K, V> map = ((MapField<K, V>) mapField).getMap(); in getSerializedSizeFull()
DMapField.java56 public class MapField<K, V> implements MutabilityOracle { class
128 private MapField(Converter<K, V> converter, StorageMode mode, Map<K, V> mapData) { in MapField() method in MapField
136 private MapField(MapEntry<K, V> defaultEntry, StorageMode mode, Map<K, V> mapData) { in MapField() method in MapField
142 public static <K, V> MapField<K, V> emptyMapField(MapEntry<K, V> defaultEntry) { in emptyMapField()
143 return new MapField<K, V>(defaultEntry, StorageMode.MAP, Collections.<K, V>emptyMap()); in emptyMapField()
148 public static <K, V> MapField<K, V> newMapField(MapEntry<K, V> defaultEntry) { in newMapField()
149 return new MapField<K, V>(defaultEntry, StorageMode.MAP, new LinkedHashMap<K, V>()); in newMapField()
203 public void mergeFrom(MapField<K, V> other) { in mergeFrom()
215 if (!(object instanceof MapField)) { in equals()
218 MapField<K, V> other = (MapField<K, V>) object; in equals()
[all …]
DGeneratedMessageV3.java865 protected MapField internalGetMapField(int fieldNumber) {
874 protected MapField internalGetMutableMapField(int fieldNumber) {
1810 protected MapField internalGetMapField(int fieldNumber) {
2329 MapField defaultMapField = getMapField(
2338 private MapField<?, ?> getMapField(GeneratedMessageV3 message) {
2339 return (MapField<?, ?>) message.internalGetMapField(field.getNumber());
2342 private MapField<?, ?> getMapField(GeneratedMessageV3.Builder builder) {
2343 return (MapField<?, ?>) builder.internalGetMapField(field.getNumber());
2346 private MapField<?, ?> getMutableMapField(
2348 return (MapField<?, ?>) builder.internalGetMutableMapField(
[all …]
DGeneratedMessage.java717 protected MapField internalGetMapField(int fieldNumber) {
726 protected MapField internalGetMutableMapField(int fieldNumber) {
2012 protected MapField internalGetMapField(int fieldNumber) {
2536 MapField defaultMapField = getMapField(
2545 private MapField<?, ?> getMapField(GeneratedMessage message) {
2546 return (MapField<?, ?>) message.internalGetMapField(field.getNumber());
2549 private MapField<?, ?> getMapField(GeneratedMessage.Builder builder) {
2550 return (MapField<?, ?>) builder.internalGetMapField(field.getNumber());
2553 private MapField<?, ?> getMutableMapField(
2555 return (MapField<?, ?>) builder.internalGetMutableMapField(
/external/protobuf/src/google/protobuf/
Dmap_field_inl.h168 int MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
177 void MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
196 void MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
210 bool MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
221 bool MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
242 bool MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
251 void MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
254 const MapField& other_field = static_cast<const MapField&>(other); in MergeFrom()
263 void MapField<Derived, Key, T, kKeyFieldType, kValueFieldType,
265 MapField* other_field = down_cast<MapField*>(other); in Swap()
[all …]
Dmap_entry.h56 class MapField; variable
128 friend class internal::MapField;
Dmap_field.h220 class MapField : public TypeDefinedMapFieldBase<Key, T> {
245 MapField() {} in MapField() function
246 explicit MapField(Arena* arena) in MapField() function
311 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(MapField);
319 typedef MapField<T, Key, Value, kKeyFieldType, kValueFieldType,
661 friend class internal::MapField;
764 friend class internal::MapField;
Dmap_field_test.cc101 typedef MapField<EntryType, int32, int32, WireFormatLite::TYPE_INT32,
205 typedef MapField<EntryType, int32, int32, WireFormatLite::TYPE_INT32,
/external/protobuf/php/ext/google/protobuf/
Dmap.c140 PHP_ME(MapField, __construct, NULL, ZEND_ACC_PUBLIC)
141 PHP_ME(MapField, offsetExists, arginfo_offsetGet, ZEND_ACC_PUBLIC)
142 PHP_ME(MapField, offsetGet, arginfo_offsetGet, ZEND_ACC_PUBLIC)
143 PHP_ME(MapField, offsetSet, arginfo_offsetSet, ZEND_ACC_PUBLIC)
144 PHP_ME(MapField, offsetUnset, arginfo_offsetGet, ZEND_ACC_PUBLIC)
145 PHP_ME(MapField, count, arginfo_void, ZEND_ACC_PUBLIC)
146 PHP_ME(MapField, getIterator, arginfo_void, ZEND_ACC_PUBLIC)
391 PHP_METHOD(MapField, __construct) { in PHP_METHOD() argument
421 PHP_METHOD(MapField, offsetExists) { in PHP_METHOD() argument
444 PHP_METHOD(MapField, offsetGet) { in PHP_METHOD() argument
[all …]
Dprotobuf.h1104 PHP_METHOD(MapField, __construct);
1105 PHP_METHOD(MapField, offsetExists);
1106 PHP_METHOD(MapField, offsetGet);
1107 PHP_METHOD(MapField, offsetSet);
1108 PHP_METHOD(MapField, offsetUnset);
1109 PHP_METHOD(MapField, count);
1110 PHP_METHOD(MapField, getIterator);
/external/protobuf/csharp/src/Google.Protobuf/Collections/
DMapField.cs69 …public sealed class MapField<TKey, TValue> : IDeepCloneable<MapField<TKey, TValue>>, IDictionary<T… class
88 public MapField<TKey, TValue> Clone() in Clone()
90 var clone = new MapField<TKey, TValue>(); in Clone()
354 return Equals(other as MapField<TKey, TValue>); in Equals()
383 public bool Equals(MapField<TKey, TValue> other) in Equals()
686 private readonly MapField<TKey, TValue> parent;
691 MapField<TKey, TValue> parent, in MapView()
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DStruct.cs116 …private static readonly pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>.Codec …
117 …= new pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>.Codec(pb::FieldCodec.For…
118 …private readonly pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> fields_ = new…
123 public pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> Fields {
/external/protobuf/src/google/protobuf/compiler/
Dparser.h500 struct MapField { struct
510 MapField() : is_map_field(false) {} in MapField() argument
513 void GenerateMapEntry(const MapField& map_field, FieldDescriptorProto* field,
/external/protobuf/php/src/Google/Protobuf/Internal/
DMapFieldIter.php55 * @param MapField The MapField instance for which this iterator is
DGPBUtil.php39 use Google\Protobuf\Internal\MapField; alias
229 if (!$var instanceof MapField && !is_array($var)) {
233 $tmp = new MapField($key_type, $value_type, $klass);
DMessage.php107 $map_field = new MapField(
114 $map_field = new MapField(
121 $map_field = new MapField(
509 $map_field = new MapField(
516 $map_field = new MapField(
523 $map_field = new MapField(
/external/rust/crates/protobuf-codegen/src/field/
Dmod.rs191 pub struct MapField<'a> { struct
204 Map(MapField<'a>), argument
474 FieldKind::Map(MapField { in parse()
577 fn map(&self) -> &MapField { in map() argument
607 FieldKind::Map(MapField { in full_storage_type()
847 FieldKind::Map(MapField { in accessor_fn()
1411 let &MapField { in write_merge_from_map()
1588 FieldKind::Map(MapField { in write_message_write_field()
1638 FieldKind::Map(MapField { in write_message_compute_field_size()

12