Example #1
0
 public int getRepeatedFieldCount(FieldDescriptor field) {
   verifyContainingType(field);
   return fields.getRepeatedFieldCount(field);
 }
Example #2
0
 /** Get the number of elements in a repeated extension. */
 public final <Type> int getExtensionCount(
     final GeneratedExtension<MessageType, List<Type>> extension) {
   verifyExtensionContainingType(extension);
   return extensions.getRepeatedFieldCount(extension.descriptor);
 }