Home
last modified time | relevance | path

Searched refs:ExtensionRegistry (Results 1 – 25 of 61) sorted by relevance

123

/external/protobuf/benchmarks/java/src/main/java/com/google/protobuf/
DProtoCaliperBenchmark.java11 import com.google.protobuf.ExtensionRegistry;
35 @Override ExtensionRegistry getExtensionRegistry() { return ExtensionRegistry.newInstance(); } in getExtensionRegistry()
43 @Override ExtensionRegistry getExtensionRegistry() { return ExtensionRegistry.newInstance(); } in getExtensionRegistry()
51 @Override ExtensionRegistry getExtensionRegistry() { return ExtensionRegistry.newInstance(); } in getExtensionRegistry()
59 ExtensionRegistry getExtensionRegistry() { in getExtensionRegistry()
60 ExtensionRegistry extensions = ExtensionRegistry.newInstance(); in getExtensionRegistry()
79 ExtensionRegistry getExtensionRegistry() { in getExtensionRegistry()
80 ExtensionRegistry extensions = ExtensionRegistry.newInstance(); in getExtensionRegistry()
93 abstract ExtensionRegistry getExtensionRegistry(); in getExtensionRegistry()
104 private ExtensionRegistry extensions;
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DExtensionRegistry.java91 public class ExtensionRegistry extends ExtensionRegistryLite { class
93 public static ExtensionRegistry newInstance() { in newInstance()
94 return new ExtensionRegistry(); in newInstance()
98 public static ExtensionRegistry getEmptyRegistry() { in getEmptyRegistry()
105 public ExtensionRegistry getUnmodifiable() { in getUnmodifiable()
106 return new ExtensionRegistry(this); in getUnmodifiable()
270 private ExtensionRegistry() { in ExtensionRegistry() method in ExtensionRegistry
277 private ExtensionRegistry(ExtensionRegistry other) { in ExtensionRegistry() method in ExtensionRegistry
291 ExtensionRegistry(boolean empty) { in ExtensionRegistry() method in ExtensionRegistry
299 static final ExtensionRegistry EMPTY_REGISTRY = new ExtensionRegistry(true);
DMessageReflection.java222 public ExtensionRegistry.ExtensionInfo findExtensionByName( in findExtensionByName()
223 ExtensionRegistry registry, String name); in findExtensionByName()
225 public ExtensionRegistry.ExtensionInfo findExtensionByNumber( in findExtensionByNumber()
226 ExtensionRegistry registry, Descriptors.Descriptor containingType, int fieldNumber); in findExtensionByNumber()
419 public ExtensionRegistry.ExtensionInfo findExtensionByName( in findExtensionByName()
420 ExtensionRegistry registry, String name) { in findExtensionByName()
425 public ExtensionRegistry.ExtensionInfo findExtensionByNumber( in findExtensionByNumber()
426 ExtensionRegistry registry, Descriptors.Descriptor containingType, int fieldNumber) { in findExtensionByNumber()
621 public ExtensionRegistry.ExtensionInfo findExtensionByName( in findExtensionByName()
622 ExtensionRegistry registry, String name) { in findExtensionByName()
[all …]
DExtensionSchemaFull.java95 ExtensionRegistry.ExtensionInfo extension = (ExtensionRegistry.ExtensionInfo) extensionObject; in parseExtension()
499 return ((ExtensionRegistry) extensionRegistry) in findExtensionByNumber()
510 ExtensionRegistry.ExtensionInfo extensionInfo = (ExtensionRegistry.ExtensionInfo) extension; in parseLengthPrefixedMessageSetItem()
530 ExtensionRegistry.ExtensionInfo extensionInfo = (ExtensionRegistry.ExtensionInfo) extension; in parseMessageSetItem()
DTextFormat.java1318 final ExtensionRegistry extensionRegistry, in merge()
1331 final ExtensionRegistry extensionRegistry, in merge()
1345 final ExtensionRegistry extensionRegistry, in parse()
1467 merge(input, ExtensionRegistry.getEmptyRegistry(), builder); in merge()
1475 merge(input, ExtensionRegistry.getEmptyRegistry(), builder); in merge()
1484 final ExtensionRegistry extensionRegistry, in merge()
1575 final ExtensionRegistry extensionRegistry, in merge()
1594 final ExtensionRegistry extensionRegistry, in mergeField()
1609 final ExtensionRegistry extensionRegistry, in mergeField()
1618 ExtensionRegistry.ExtensionInfo extension = null; in mergeField()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DExtensionRegistryFactoryTest.java81 assertEquals(registry.getClass(), ExtensionRegistry.class); in testCreate()
88 assertEquals(emptyRegistry.getClass(), ExtensionRegistry.class); in testEmpty()
89 assertEquals(emptyRegistry, ExtensionRegistry.EMPTY_REGISTRY); in testEmpty()
105 NonNestedExtension.registerAllExtensions((ExtensionRegistry) registry2); in testAdd()
108 ExtensionRegistry fullRegistry1 = (ExtensionRegistry) registry1; in testAdd()
109 ExtensionRegistry fullRegistry2 = (ExtensionRegistry) registry2; in testAdd()
148 NonNestedExtension.registerAllExtensions((ExtensionRegistry) registry2); in testAdd_immutable()
254 ExtensionRegistry.EXTENSION_CLASS_NAME))); in getLiteOnlyClassLoader()
DWireFormatTest.java221 private ExtensionRegistry getTestFieldOrderingsRegistry() { in getTestFieldOrderingsRegistry()
222 ExtensionRegistry result = ExtensionRegistry.newInstance(); in getTestFieldOrderingsRegistry()
244 private static ExtensionRegistry getTestExtensionInsideTableRegistry() { in getTestExtensionInsideTableRegistry()
245 ExtensionRegistry result = ExtensionRegistry.newInstance(); in getTestExtensionInsideTableRegistry()
343 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testParseMessageSetWithFlag()
399 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testParseMessageSetExtensionWithFlag()
430 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testMergeLazyMessageSetExtensionWithFlag()
463 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testMergeMessageSetExtensionWithFlag()
DParseExceptionsTest.java99 return DescriptorProto.parseFrom(in, ExtensionRegistry.newInstance()); in message_parseFrom_InputStreamAndExtensionRegistry()
124 CodedInputStream.newInstance(in), ExtensionRegistry.newInstance()); in message_parseFrom_CodedInputStreamAndExtensionRegistry()
148 return DescriptorProto.parseDelimitedFrom(in, ExtensionRegistry.newInstance()); in message_parseDelimitedFrom_InputStreamAndExtensionRegistry()
173 .mergeFrom(in, ExtensionRegistry.newInstance()) in messageBuilder_mergeFrom_InputStreamAndExtensionRegistry()
199 .mergeFrom(CodedInputStream.newInstance(in), ExtensionRegistry.newInstance()) in messageBuilder_mergeFrom_CodedInputStreamAndExtensionRegistry()
244 builder.mergeDelimitedFrom(in, ExtensionRegistry.newInstance()); in messageBuilder_mergeDelimitedFrom_InputStreamAndExtensionRegistry()
DParserTest.java201 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testOptimizeForSize()
265 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testParsingMerge()
/external/protobuf/csharp/src/Google.Protobuf/
DMessageExtensions.cs194 …ergeFrom(this IMessage message, byte[] data, bool discardUnknownFields, ExtensionRegistry registry) in MergeFrom()
200 input.ExtensionRegistry = registry; in MergeFrom()
205 …essage, byte[] data, int offset, int length, bool discardUnknownFields, ExtensionRegistry registry) in MergeFrom()
211 input.ExtensionRegistry = registry; in MergeFrom()
216 …From(this IMessage message, ByteString data, bool discardUnknownFields, ExtensionRegistry registry) in MergeFrom()
222 input.ExtensionRegistry = registry; in MergeFrom()
227 …rgeFrom(this IMessage message, Stream input, bool discardUnknownFields, ExtensionRegistry registry) in MergeFrom()
233 codedInput.ExtensionRegistry = registry; in MergeFrom()
238 …tedFrom(this IMessage message, Stream input, bool discardUnknownFields, ExtensionRegistry registry) in MergeDelimitedFrom()
DExtensionRegistry.cs43 … public sealed class ExtensionRegistry : ICollection<Extension>, IDeepCloneable<ExtensionRegistry> class
50 public ExtensionRegistry() in ExtensionRegistry() method in Google.Protobuf.ExtensionRegistry
55 private ExtensionRegistry(IDictionary<ObjectIntPair<Type>, Extension> collection) in ExtensionRegistry() method in Google.Protobuf.ExtensionRegistry
160 public ExtensionRegistry Clone() in Clone()
162 return new ExtensionRegistry(extensions); in Clone()
DMessageParser.cs48 internal ExtensionRegistry Extensions { get; }
50 …internal MessageParser(Func<IMessage> factory, bool discardUnknownFields, ExtensionRegistry extens… in MessageParser()
198 public MessageParser WithExtensionRegistry(ExtensionRegistry registry) =>
238 …internal MessageParser(Func<T> factory, bool discardUnknownFields, ExtensionRegistry extensions) :… in MessageParser()
357 public new MessageParser<T> WithExtensionRegistry(ExtensionRegistry registry) =>
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DWireFormatTest.java135 ExtensionRegistry registry = TestUtil.getExtensionRegistry(); in testParseExtensions()
148 ExtensionRegistry registry = TestUtil.getExtensionRegistry(); in testParsePackedExtensions()
221 private ExtensionRegistry getTestFieldOrderingsRegistry() { in getTestFieldOrderingsRegistry()
222 ExtensionRegistry result = ExtensionRegistry.newInstance(); in getTestFieldOrderingsRegistry()
333 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testParseMessageSetWithFlag()
396 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testParseMessageSetExtensionWithFlag()
435 ExtensionRegistry extensionRegistry = ExtensionRegistry.newInstance(); in testMergeLazyMessageSetExtensionWithFlag()
DParserTest.java202 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testOptimizeForSize()
258 ExtensionRegistry registry = ExtensionRegistry.newInstance(); in testParsingMerge()
/external/protobuf/conformance/
DConformanceJava.java4 import com.google.protobuf.ExtensionRegistry;
73 Parser <MessageType> parser, ExtensionRegistry extensions) in decode()
133 ByteString bytes, Parser <MessageType> parser, ExtensionRegistry extensions) in parseBinary()
216 ExtensionRegistry extensions = ExtensionRegistry.newInstance(); in doTest()
224 ExtensionRegistry extensions = ExtensionRegistry.newInstance(); in doTest()
/external/grpc-grpc-java/protobuf/src/main/java/io/grpc/protobuf/
DProtoUtils.java19 import com.google.protobuf.ExtensionRegistry;
47 public static void setExtensionRegistry(ExtensionRegistry registry) { in setExtensionRegistry()
/external/grpc-grpc-java/services/src/generated/test/java/io/grpc/reflection/testing/
DReflectionTestDepthTwoAlternateProto.java13 com.google.protobuf.ExtensionRegistry registry) { in registerAllExtensions()
35 public com.google.protobuf.ExtensionRegistry assignDescriptors(
DDynamicReflectionTestProto.java13 com.google.protobuf.ExtensionRegistry registry) { in registerAllExtensions()
40 public com.google.protobuf.ExtensionRegistry assignDescriptors(
DReflectionTestProto.java14 com.google.protobuf.ExtensionRegistry registry) { in registerAllExtensions()
52 public com.google.protobuf.ExtensionRegistry assignDescriptors(
DReflectionTestDepthTwoProto.java14 com.google.protobuf.ExtensionRegistry registry) { in registerAllExtensions()
61 public com.google.protobuf.ExtensionRegistry assignDescriptors(
DDynamicReflectionTestDepthTwoProto.java14 com.google.protobuf.ExtensionRegistry registry) { in registerAllExtensions()
65 public com.google.protobuf.ExtensionRegistry assignDescriptors(
/external/grpc-grpc-java/benchmarks/src/generated/main/java/io/grpc/benchmarks/proto/
DServices.java13 com.google.protobuf.ExtensionRegistry registry) { in registerAllExtensions()
53 public com.google.protobuf.ExtensionRegistry assignDescriptors(
/external/grpc-grpc-java/interop-testing/src/generated/main/java/io/grpc/testing/integration/
DTest.java13 com.google.protobuf.ExtensionRegistry registry) { in registerAllExtensions()
56 public com.google.protobuf.ExtensionRegistry assignDescriptors(
/external/grpc-grpc-java/testing-proto/src/generated/main/java/io/grpc/testing/protobuf/
DSimpleServiceProto.java13 com.google.protobuf.ExtensionRegistry registry) { in registerAllExtensions()
53 public com.google.protobuf.ExtensionRegistry assignDescriptors(
/external/grpc-grpc-java/services/src/generated/main/java/io/grpc/health/v1/
DHealthProto.java13 com.google.protobuf.ExtensionRegistry registry) { in registerAllExtensions()
53 public com.google.protobuf.ExtensionRegistry assignDescriptors(

123