Home
last modified time | relevance | path

Searched refs:repeatedField (Results 1 – 6 of 6) sorted by relevance

/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyRepeatedField.java237 RubyRepeatedField repeatedField = (RubyRepeatedField) list; in plus() local
238 if (! fieldType.equals(repeatedField.fieldType) || (typeClass != null && ! in plus()
239 typeClass.equals(repeatedField.typeClass))) in plus()
241 dup.storage.addAll((RubyArray) repeatedField.toArray(context)); in plus()
258 RubyRepeatedField repeatedField = (RubyRepeatedField) list; in concat() local
259 if (! fieldType.equals(repeatedField.fieldType) || (typeClass != null && ! in concat()
260 typeClass.equals(repeatedField.typeClass))) in concat()
262 this.storage.addAll((RubyArray) repeatedField.toArray(context)); in concat()
DRubyMessage.java97 … RubyRepeatedField repeatedField = rubyToRepeatedField(context, fieldDescriptor, value); in initialize()
98 addRepeatedField(fieldDescriptor, repeatedField); in initialize()
382 RubyRepeatedField repeatedField = repeatedFields.get(fieldDescriptor); in build() local
384 for (int i = 0; i < repeatedField.size(); i++) { in build()
385 Object item = convert(context, fieldDescriptor, repeatedField.get(i), depth); in build()
428 …id addRepeatedField(Descriptors.FieldDescriptor fieldDescriptor, RubyRepeatedField repeatedField) { in addRepeatedField() argument
429 this.repeatedFields.put(fieldDescriptor, repeatedField); in addRepeatedField()
658 … RubyRepeatedField repeatedField = rubyToRepeatedField(context, fieldDescriptor, ary); in setField() local
659 addRepeatedField(fieldDescriptor, repeatedField); in setField()
724 RubyRepeatedField repeatedField = repeatedFieldForFieldDescriptor(context, fieldDescriptor); in rubyToRepeatedField() local
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DUnknownFieldSetTest.java283 Descriptors.FieldDescriptor repeatedField = in testParseUnknownEnumValue() local
286 assertNotNull(repeatedField); in testParseUnknownEnumValue()
295 .addField(repeatedField.getNumber(), in testParseUnknownEnumValue()
318 .getField(repeatedField.getNumber()) in testParseUnknownEnumValue()
336 .getField(repeatedField.getNumber()) in testParseUnknownEnumValue()
581 Descriptors.FieldDescriptor repeatedField = in testParseUnknownEnumValueLite() local
584 assertNotNull(repeatedField); in testParseUnknownEnumValueLite()
593 .addField(repeatedField.getNumber(), in testParseUnknownEnumValueLite()
620 .getField(repeatedField.getNumber()) in testParseUnknownEnumValueLite()
638 .getField(repeatedField.getNumber()) in testParseUnknownEnumValueLite()
DDescriptorsTest.java266 FieldDescriptor repeatedField = in testFieldDescriptorLabel() local
273 assertFalse(repeatedField.isRequired()); in testFieldDescriptorLabel()
274 assertTrue(repeatedField.isRepeated()); in testFieldDescriptorLabel()
280 FieldDescriptor repeatedField = TestAllTypes.getDescriptor().findFieldByName("repeated_int32"); in testFieldDescriptorJsonName() local
283 assertEquals("repeatedInt32", repeatedField.getJsonName()); in testFieldDescriptorJsonName()
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs168 FieldDescriptor repeatedField = in FieldDescriptorLabel()
172 Assert.IsTrue(repeatedField.IsRepeated); in FieldDescriptorLabel()
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
DNanoTest.java4494 standardMsg.repeatedField = new int[] { StandardVersion.VAL_3, StandardVersion.VAL_2 }; in testUnknownRepeatedEnumValue()
4500 assertTrue(Arrays.equals(new int[] { VersionWithoutVal3.VAL_2 }, withoutVal3Msg.repeatedField)); in testUnknownRepeatedEnumValue()
4504 withoutVal3Msg.repeatedField = new int[] { VersionWithoutVal3.VAL_2, VersionWithoutVal3.VAL_1 }; in testUnknownRepeatedEnumValue()
4510 standardMsgFromWithoutVal3Msg.repeatedField)); in testUnknownRepeatedEnumValue()