/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyMessage.java | 85 final Descriptors.FieldDescriptor fieldDescriptor = findField(context, key); in initialize() 87 if (Utils.isMapEntry(fieldDescriptor)) { in initialize() 91 final RubyMap map = newMapForField(context, fieldDescriptor); in initialize() 93 maps.put(fieldDescriptor, map); in initialize() 94 } else if (fieldDescriptor.isRepeated()) { in initialize() 97 … RubyRepeatedField repeatedField = rubyToRepeatedField(context, fieldDescriptor, value); in initialize() 98 addRepeatedField(fieldDescriptor, repeatedField); in initialize() 100 Descriptors.OneofDescriptor oneof = fieldDescriptor.getContainingOneof(); in initialize() 102 oneofCases.put(oneof, fieldDescriptor); in initialize() 104 fields.put(fieldDescriptor, value); in initialize() [all …]
|
D | RubyDescriptorPool.java | 140 for (Descriptors.FieldDescriptor fieldDescriptor : descriptor.getFields()) { in buildFileDescriptor() 141 if (fieldDescriptor.isRequired()) { in buildFileDescriptor() 144 … RubyFieldDescriptor rubyFieldDescriptor = rubyDescriptor.lookup(fieldDescriptor.getName()); in buildFileDescriptor() 145 rubyFieldDescriptor.setFieldDef(fieldDescriptor); in buildFileDescriptor() 146 if (fieldDescriptor.getType() == Descriptors.FieldDescriptor.Type.MESSAGE) { in buildFileDescriptor() 148 … runtime.newString(Utils.unescapeIdentifier(fieldDescriptor.getMessageType().getName()))); in buildFileDescriptor() 151 if (fieldDescriptor.getType() == Descriptors.FieldDescriptor.Type.ENUM) { in buildFileDescriptor() 153 … runtime.newString(Utils.unescapeIdentifier(fieldDescriptor.getEnumType().getName()))); in buildFileDescriptor()
|
D | RubyOneofDescriptor.java | 85 RubyFieldDescriptor fieldDescriptor = (RubyFieldDescriptor) obj; in addField() local 86 fieldDescriptor.setOneofName(this.name); in addField() 87 fields.add(fieldDescriptor); in addField() 117 RubyFieldDescriptor fieldDescriptor = fields.get(0); in getOneofDescriptor() local 118 return fieldDescriptor.getFieldDef().getContainingOneof(); in getOneofDescriptor()
|
D | Utils.java | 227 public static boolean isMapEntry(Descriptors.FieldDescriptor fieldDescriptor) { in isMapEntry() argument 228 return fieldDescriptor.getType() == Descriptors.FieldDescriptor.Type.MESSAGE && in isMapEntry() 229 fieldDescriptor.isRepeated() && in isMapEntry() 230 fieldDescriptor.getMessageType().getOptions().getMapEntry(); in isMapEntry()
|
D | RubyOneofBuilderContext.java | 76 RubyFieldDescriptor fieldDescriptor = Utils.msgdefCreateField(context, "optional", in optional() local 78 descriptor.addField(context, fieldDescriptor); in optional()
|
D | RubyFieldDescriptor.java | 241 protected void setFieldDef(Descriptors.FieldDescriptor fieldDescriptor) { in setFieldDef() argument 242 this.fieldDef = fieldDescriptor; in setFieldDef()
|
D | RubyDescriptor.java | 183 for (RubyFieldDescriptor fieldDescriptor : def.getFields()) { in addOneof() 184 addField(context, fieldDescriptor); in addOneof()
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | TextFormatParseInfoTree.java | 99 public List<TextFormatParseLocation> getLocations(final FieldDescriptor fieldDescriptor) { in getLocations() argument 100 List<TextFormatParseLocation> result = locationsFromField.get(fieldDescriptor); in getLocations() 115 public TextFormatParseLocation getLocation(final FieldDescriptor fieldDescriptor, int index) { in getLocation() argument 116 return getFromList(getLocations(fieldDescriptor), index, fieldDescriptor); in getLocation() 125 public List<TextFormatParseInfoTree> getNestedTrees(final FieldDescriptor fieldDescriptor) { in getNestedTrees() argument 126 List<TextFormatParseInfoTree> result = subtreesFromField.get(fieldDescriptor); in getNestedTrees() 139 public TextFormatParseInfoTree getNestedTree(final FieldDescriptor fieldDescriptor, int index) { in getNestedTree() argument 140 return getFromList(getNestedTrees(fieldDescriptor), index, fieldDescriptor); in getNestedTree() 152 private static <T> T getFromList(List<T> list, int index, FieldDescriptor fieldDescriptor) { in getFromList() argument 155 fieldDescriptor == null ? "<null>" : fieldDescriptor.getName(), index)); in getFromList() [all …]
|
/external/protobuf/csharp/src/Google.Protobuf/Reflection/ |
D | MessageDescriptor.cs | 287 var fieldDescriptor = messageDescriptor.FindFieldByNumber(number); 288 if (fieldDescriptor == null) 292 return fieldDescriptor; 307 var fieldDescriptor = messageDescriptor.FindFieldByName(name); 308 if (fieldDescriptor == null) 312 return fieldDescriptor;
|
/external/protobuf/objectivec/Tests/ |
D | GPBDescriptorTests.m | 141 GPBFieldDescriptor *fieldDescriptor = 145 XCTAssertTrue([fieldDescriptor isValidEnumValue:1]); 146 XCTAssertTrue([fieldDescriptor isValidEnumValue:2]); 147 XCTAssertTrue([fieldDescriptor isValidEnumValue:3]); 148 XCTAssertTrue([fieldDescriptor isValidEnumValue:-1]); 151 XCTAssertFalse([fieldDescriptor isValidEnumValue:4]); 152 XCTAssertFalse([fieldDescriptor isValidEnumValue:0]); 153 XCTAssertFalse([fieldDescriptor isValidEnumValue:-2]);
|
D | GPBMessageTests.m | 445 GPBFieldDescriptor *fieldDescriptor = 447 XCTAssertNotNil(fieldDescriptor); 448 GPBGenericValue defaultValue = [fieldDescriptor defaultValue]; 455 fieldDescriptor = [descriptor fieldWithName:@"defaultString"]; 456 XCTAssertNotNil(fieldDescriptor); 457 defaultValue = [fieldDescriptor defaultValue]; 466 fieldDescriptor = [descriptor fieldWithName:@"defaultString"]; 467 XCTAssertNotNil(fieldDescriptor); 468 defaultValue = [fieldDescriptor defaultValue]; 483 fieldDescriptor = [descriptor fieldWithName:@"defaultBytes"]; [all …]
|
/external/protobuf/src/google/protobuf/compiler/csharp/ |
D | csharp_message.cc | 154 const FieldDescriptor* fieldDescriptor = descriptor_->field(i); in Generate() local 160 "field_name", fieldDescriptor->name(), in Generate() 161 "field_constant_name", GetFieldConstantName(fieldDescriptor), in Generate() 162 "index", SimpleItoa(fieldDescriptor->number())); in Generate() 164 CreateFieldGeneratorInternal(fieldDescriptor)); in Generate()
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | GeneratedMessageTest.java | 1106 FieldDescriptor fieldDescriptor = in testGetFieldBuilder() local 1116 Message.Builder fieldBuilder1 = builder1.newBuilderForField(fieldDescriptor) in testGetFieldBuilder() 1117 .mergeFrom((Message) builder1.getField(fieldDescriptor)); in testGetFieldBuilder() 1121 builder1.setField(fieldDescriptor, fieldBuilder1.build()); in testGetFieldBuilder() 1146 Message.Builder fieldBuilder2 = builder2.getFieldBuilder(fieldDescriptor); in testGetFieldBuilder() 1150 builder2.setField(fieldDescriptor, fieldBuilder2.build()); in testGetFieldBuilder() 1178 FieldDescriptor fieldDescriptor = in testGetFieldBuilderWithInitializedValue() local 1184 (NestedMessage.Builder) builder.getFieldBuilder(fieldDescriptor); in testGetFieldBuilderWithInitializedValue() 1194 (NestedMessage.Builder) builder.getFieldBuilder(fieldDescriptor); in testGetFieldBuilderWithInitializedValue() 1542 FieldDescriptor fieldDescriptor = in testGetRepeatedFieldBuilder() local [all …]
|
/external/protobuf/objectivec/ |
D | GPBMessage.m | 2269 GPBFieldDescriptor *fieldDescriptor = fields[startingIndex]; 2270 if (GPBFieldTag(fieldDescriptor) == tag) { 2271 GPBFieldType fieldType = fieldDescriptor.fieldType; 2273 MergeSingleFieldFromCodedInputStream(self, fieldDescriptor, syntax, 2279 if (fieldDescriptor.isPackable) { 2281 self, fieldDescriptor, syntax, input); 2287 self, fieldDescriptor, syntax, input, extensionRegistry); 2292 id map = GetOrCreateMapIvarWithField(self, fieldDescriptor, syntax); 2295 field:fieldDescriptor 2311 GPBFieldDescriptor *fieldDescriptor = fields[startingIndex]; [all …]
|
D | GPBDescriptor.m | 135 GPBFieldDescriptor *fieldDescriptor = 139 [fields addObject:fieldDescriptor]; 140 [fieldDescriptor release]; 197 for (GPBFieldDescriptor *fieldDescriptor in fields_) { 198 if (fieldDescriptor->description_->flags & GPBFieldTextFormatNameCustom) { 199 objc_setAssociatedObject(fieldDescriptor, &kTextFormatExtraValueKey,
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/ |
D | ClassPool.java | 84 String fieldDescriptor = ReferenceUtil.getShortFieldDescriptor(field); in intern() local 85 if (!fields.add(fieldDescriptor)) { in intern() 87 poolClassDef.getType(), fieldDescriptor); in intern()
|
/external/protobuf/src/google/protobuf/compiler/objectivec/ |
D | objectivec_message.cc | 236 const FieldDescriptor* fieldDescriptor = descriptor_->field(i); in DetermineForwardDeclarations() local 237 field_generators_.get(fieldDescriptor) in DetermineForwardDeclarations()
|
D | objectivec_helpers.cc | 453 const Descriptor* fieldDescriptor = descriptor->containing_type(); in OneofEnumName() local 454 string name = ClassName(fieldDescriptor); in OneofEnumName()
|
/external/emma/core/java12/com/vladium/emma/instr/ |
D | InstrVisitor.java | 195 final String fieldDescriptor = "[[Z"; in visit() local 211 coverageFieldOffset = cls.addField (COVERAGE_FIELD_NAME, fieldDescriptor, in visit() 216 coverageFieldOffset = cls.addField (COVERAGE_FIELD_NAME, fieldDescriptor, in visit() 328 final String fieldDescriptor = "J"; in visit() local 344 cls.addField (SUID_FIELD_NAME, fieldDescriptor, fieldModifiers, fieldAttributes); in visit()
|