Commit 0b6a8f70 authored by Behrooz Khorashadi's avatar Behrooz Khorashadi Committed by Gerrit Code Review

Merge "Added an API method in FieldData to allow access to the UnknownField data"

parents 59f2ff58 5d6fc192
......@@ -58,6 +58,23 @@ class FieldData {
unknownFieldData.add(unknownField);
}
UnknownFieldData getUnknownField(int index) {
if (unknownFieldData == null) {
return null;
}
if (index < unknownFieldData.size()) {
return unknownFieldData.get(index);
}
return null;
}
int getUnknownFieldSize() {
if (unknownFieldData == null) {
return 0;
}
return unknownFieldData.size();
}
<T> T getValue(Extension<?, T> extension) {
if (value != null){
if (cachedExtension != extension) { // Extension objects are singletons.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment