Home
last modified time | relevance | path

Searched refs:keyField (Results 1 – 11 of 11) 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.java613 … Descriptors.FieldDescriptor keyField = fieldDescriptor.getMessageType().findFieldByNumber(1); in getField() local
621 …map.indexSet(context, kvMessage.getField(context, keyField), kvMessage.getField(context, valueFiel… in getField()
733 … Descriptors.FieldDescriptor keyField = fieldDescriptor.getMessageType().findFieldByNumber(1); in newMapForField() local
735 IRubyObject keyType = RubySymbol.newSymbol(context.runtime, keyField.getType().name()); in newMapForField()
/external/syzkaller/vendor/google.golang.org/appengine/datastore/
Dprop.go141 keyField int member
185 keyField: -1,
224 c.keyField = i
Dload.go252 if ent.Key != nil && pls.codec.keyField != -1 {
254 pls.v.Field(pls.codec.keyField).Set(reflect.ValueOf(ent.Key))
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java758 FieldDescriptor keyField = type.findFieldByName("key"); in printMapFieldValue() local
760 if (keyField == null || valueField == null) { in printMapFieldValue()
768 Object entryKey = entry.getField(keyField); in printMapFieldValue()
776 printSingleFieldValue(keyField, entryKey, true); in printMapFieldValue()
1321 FieldDescriptor keyField = type.findFieldByName("key"); in mergeMapField() local
1323 if (keyField == null || valueField == null) { in mergeMapField()
1331 keyField, new JsonPrimitive(entry.getKey()), entryBuilder); in mergeMapField()
1338 entryBuilder.setField(keyField, key); in mergeMapField()
/external/protobuf/csharp/src/Google.Protobuf/
DJsonParser.cs280 var keyField = type.FindFieldByNumber(1); in MergeMapField()
282 if (keyField == null || valueField == null) in MergeMapField()
295 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/
DMapForProto2Test.java436 FieldDescriptor keyField = entryBuilder.getDescriptorForType().findFieldByName("key"); in newMapEntry() local
438 entryBuilder.setField(keyField, key); in newMapEntry()
DMapTest.java529 FieldDescriptor keyField = entryBuilder.getDescriptorForType().findFieldByName("key"); in newMapEntry() local
531 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)