|
|
@ -866,6 +866,7 @@ public abstract class GeneratedMessageV3 extends AbstractMessage |
|
|
|
|
|
|
|
|
|
|
|
/** Check if a singular extension is present. */ |
|
|
|
/** Check if a singular extension is present. */ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
|
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
public final <Type> boolean hasExtension(final ExtensionLite<MessageType, Type> extensionLite) { |
|
|
|
public final <Type> boolean hasExtension(final ExtensionLite<MessageType, Type> extensionLite) { |
|
|
|
Extension<MessageType, Type> extension = checkNotLite(extensionLite); |
|
|
|
Extension<MessageType, Type> extension = checkNotLite(extensionLite); |
|
|
|
|
|
|
|
|
|
|
@ -875,6 +876,7 @@ public abstract class GeneratedMessageV3 extends AbstractMessage |
|
|
|
|
|
|
|
|
|
|
|
/** Get the number of elements in a repeated extension. */ |
|
|
|
/** Get the number of elements in a repeated extension. */ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
|
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
public final <Type> int getExtensionCount( |
|
|
|
public final <Type> int getExtensionCount( |
|
|
|
final ExtensionLite<MessageType, List<Type>> extensionLite) { |
|
|
|
final ExtensionLite<MessageType, List<Type>> extensionLite) { |
|
|
|
Extension<MessageType, List<Type>> extension = checkNotLite(extensionLite); |
|
|
|
Extension<MessageType, List<Type>> extension = checkNotLite(extensionLite); |
|
|
@ -2219,6 +2221,7 @@ public abstract class GeneratedMessageV3 extends AbstractMessage |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
|
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
public Object get(GeneratedMessageV3 message) { |
|
|
|
public Object get(GeneratedMessageV3 message) { |
|
|
|
List result = new ArrayList(); |
|
|
|
List result = new ArrayList(); |
|
|
|
for (int i = 0; i < getRepeatedCount(message); i++) { |
|
|
|
for (int i = 0; i < getRepeatedCount(message); i++) { |
|
|
@ -2228,6 +2231,7 @@ public abstract class GeneratedMessageV3 extends AbstractMessage |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
|
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
public Object get(Builder builder) { |
|
|
|
public Object get(Builder builder) { |
|
|
|
List result = new ArrayList(); |
|
|
|
List result = new ArrayList(); |
|
|
|
for (int i = 0; i < getRepeatedCount(builder); i++) { |
|
|
|
for (int i = 0; i < getRepeatedCount(builder); i++) { |
|
|
|