Home
last modified time | relevance | path

Searched refs:keyField (Results 1 – 9 of 9) sorted by relevance

/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMessageBuilderContext.java167 …RubyFieldDescriptor keyField = (RubyFieldDescriptor) cFieldDescriptor.newInstance(context, Block.N… in map() local
168 keyField.setName(context, runtime.newString("key")); in map()
169 keyField.setLabel(context, RubySymbol.newSymbol(runtime, "optional")); in map()
170 keyField.setNumber(context, runtime.newFixnum(1)); in map()
171 keyField.setType(context, keyType); in map()
172 mapentryDesc.addField(context, keyField); in map()
DRubyMap.java367 Descriptors.FieldDescriptor keyField = descriptor.lookup("key").getFieldDef(); in build() local
371 mapMessage.setField(context, keyField, key); in build()
DRubyMessage.java645 … Descriptors.FieldDescriptor keyField = fieldDescriptor.getMessageType().findFieldByNumber(1); in getField() local
653 …map.indexSet(context, kvMessage.getField(context, keyField), kvMessage.getField(context, valueFiel… in getField()
777 … Descriptors.FieldDescriptor keyField = fieldDescriptor.getMessageType().findFieldByNumber(1); in newMapForField() local
779 IRubyObject keyType = RubySymbol.newSymbol(context.runtime, keyField.getType().name()); in newMapForField()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java997 FieldDescriptor keyField = type.findFieldByName("key"); in printMapFieldValue() local
999 if (keyField == null || valueField == null) { in printMapFieldValue()
1009 if (keyField.getType() == FieldDescriptor.Type.STRING) { in printMapFieldValue()
1022 Object entryKey = entry.getField(keyField); in printMapFieldValue()
1031 Object entryKey = entry.getField(keyField); in printMapFieldValue()
1039 printSingleFieldValue(keyField, entryKey, true); in printMapFieldValue()
1593 FieldDescriptor keyField = type.findFieldByName("key"); in mergeMapField() local
1595 if (keyField == null || valueField == null) { in mergeMapField()
1601 Object key = parseFieldValue(keyField, new JsonPrimitive(entry.getKey()), entryBuilder); in mergeMapField()
1610 entryBuilder.setField(keyField, key); in mergeMapField()
/external/protobuf/csharp/src/Google.Protobuf/
DJsonParser.cs286 var keyField = type.FindFieldByNumber(1); in MergeMapField()
288 if (keyField == null || valueField == null) in MergeMapField()
301 object key = ParseMapKey(keyField, token.StringValue); in MergeMapField()
/external/bcc/src/cc/frontends/p4/compiler/
DebpfTable.py120 keyField = EbpfTableKeyField(fieldName, eInstance, ebpfField, mask)
122 self.fields.append(keyField)
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DMapTest.java746 FieldDescriptor keyField = entryBuilder.getDescriptorForType().findFieldByName("key"); in newMapEntry() local
748 entryBuilder.setField(keyField, key); in newMapEntry()
1378 FieldDescriptor keyField = mapEntryType.findFieldByNumber(1); in testInitFromPartialDynamicMessage() local
1385 .setField(keyField, 10) in testInitFromPartialDynamicMessage()
1399 FieldDescriptor keyField = mapEntryType.findFieldByNumber(1); in testInitFromFullyDynamicMessage() local
1406 .setField(keyField, 10) in testInitFromFullyDynamicMessage()
DMapForProto2Test.java655 FieldDescriptor keyField = entryBuilder.getDescriptorForType().findFieldByName("key"); in newMapEntry() local
657 entryBuilder.setField(keyField, key); in newMapEntry()
/external/golang-protobuf/protoc-gen-go/generator/
Dgenerator.go2283 keyField, valField := d.Field[0], d.Field[1]
2284 keyType, keyWire := g.GoType(d, keyField)
2286 keyTag, valTag := g.goTag(d, keyField, keyWire), g.goTag(d, valField, valWire)