Home
last modified time | relevance | path

Searched refs:TypeRegistry (Results 1 – 13 of 13) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DTypeRegistry.cs40 public sealed class TypeRegistry class
45 …public static TypeRegistry Empty { get; } = new TypeRegistry(new Dictionary<string, MessageDescrip…
49 private TypeRegistry(Dictionary<string, MessageDescriptor> fullNameToMessageMap) in TypeRegistry() method in Google.Protobuf.Reflection.TypeRegistry
78 public static TypeRegistry FromFiles(params FileDescriptor[] fileDescriptors) in FromFiles()
92 public static TypeRegistry FromFiles(IEnumerable<FileDescriptor> fileDescriptors) in FromFiles()
113 public static TypeRegistry FromMessages(params MessageDescriptor[] messageDescriptors) in FromMessages()
129 public static TypeRegistry FromMessages(IEnumerable<MessageDescriptor> messageDescriptors) in FromMessages()
177 internal TypeRegistry Build() in Build()
179 return new TypeRegistry(types); in Build()
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DTypeRegistryTest.cs45 … var registry = TypeRegistry.FromFiles(DurationReflection.Descriptor, StructReflection.Descriptor); in CreateWithFileDescriptor()
55 var registry = TypeRegistry.FromMessages(TestAllTypes.Types.NestedMessage.Descriptor); in TypesFromSameFile()
65 var registry = TypeRegistry.FromMessages(TestAllTypes.Descriptor); in DependenciesAreIncluded()
76 var registry = TypeRegistry.FromFiles( in DuplicateFiles()
84 … private static void AssertDescriptorPresent(TypeRegistry registry, MessageDescriptor descriptor) in AssertDescriptorPresent()
89 … private static void AssertDescriptorAbsent(TypeRegistry registry, MessageDescriptor descriptor) in AssertDescriptorAbsent()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java104 return new Printer(TypeRegistry.getEmptyTypeRegistry(), false, false); in printer()
111 private final TypeRegistry registry;
116 TypeRegistry registry, in Printer()
130 public Printer usingTypeRegistry(TypeRegistry registry) { in usingTypeRegistry()
131 if (this.registry != TypeRegistry.getEmptyTypeRegistry()) { in usingTypeRegistry()
195 return new Parser(TypeRegistry.getEmptyTypeRegistry()); in parser()
202 private final TypeRegistry registry;
204 private Parser(TypeRegistry registry) { in Parser()
214 public Parser usingTypeRegistry(TypeRegistry registry) { in usingTypeRegistry()
215 if (this.registry != TypeRegistry.getEmptyTypeRegistry()) { in usingTypeRegistry()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Conformance/
DProgram.cs51 var typeRegistry = TypeRegistry.FromMessages(TestAllTypes.Descriptor); in Main()
61 … private static bool RunTest(BinaryReader input, BinaryWriter output, TypeRegistry typeRegistry) in RunTest()
82 …private static ConformanceResponse PerformRequest(ConformanceRequest request, TypeRegistry typeReg… in PerformRequest()
/external/protobuf/conformance/
DConformanceJava.java4 import com.google.protobuf.util.JsonFormat.TypeRegistry;
9 private TypeRegistry typeRegistry;
129 typeRegistry = TypeRegistry.newBuilder().add( in run()
/external/protobuf/csharp/src/Google.Protobuf/
DJsonFormatter.cs571 MessageDescriptor descriptor = settings.TypeRegistry.Find(typeName); in WriteAny()
847 public TypeRegistry TypeRegistry { get; } property in Google.Protobuf.JsonFormatter.Settings
856 … public Settings(bool formatDefaultValues) : this(formatDefaultValues, TypeRegistry.Empty) in Settings()
866 public Settings(bool formatDefaultValues, TypeRegistry typeRegistry) in Settings()
869 TypeRegistry = ProtoPreconditions.CheckNotNull(typeRegistry, nameof(typeRegistry)); in Settings()
DJsonParser.cs518 MessageDescriptor descriptor = settings.TypeRegistry.Find(typeName); in MergeAny()
996 public TypeRegistry TypeRegistry { get; } property in Google.Protobuf.JsonParser.Settings
1002 public Settings(int recursionLimit) : this(recursionLimit, TypeRegistry.Empty) in Settings()
1011 public Settings(int recursionLimit, TypeRegistry typeRegistry) in Settings()
1014 TypeRegistry = ProtoPreconditions.CheckNotNull(typeRegistry, nameof(typeRegistry)); in Settings()
/external/protobuf/csharp/src/Google.Protobuf.Test/
DJsonFormatterTest.cs468 …var formatter = new JsonFormatter(new JsonFormatter.Settings(false, TypeRegistry.FromMessages(Time… in AnyWellKnownType()
477 …var formatter = new JsonFormatter(new JsonFormatter.Settings(false, TypeRegistry.FromMessages(Test… in AnyMessageType()
486 …var formatter = new JsonFormatter(new JsonFormatter.Settings(false, TypeRegistry.FromMessages(Test… in AnyMessageType_CustomPrefix()
495 … var registry = TypeRegistry.FromMessages(TestWellKnownTypes.Descriptor, TestAllTypes.Descriptor); in AnyNested()
DJsonParserTest.cs802 var registry = TypeRegistry.FromMessages(TestAllTypes.Descriptor); in Any_RegularMessage()
803 …var formatter = new JsonFormatter(new JsonFormatter.Settings(false, TypeRegistry.FromMessages(Test… in Any_RegularMessage()
816 var registry = TypeRegistry.FromMessages(TestAllTypes.Descriptor); in Any_CustomPrefix()
841 var registry = TypeRegistry.FromMessages(Timestamp.Descriptor); in Any_WellKnownType()
855 … var registry = TypeRegistry.FromMessages(TestWellKnownTypes.Descriptor, TestAllTypes.Descriptor); in Any_Nested()
DIssuesTest.cs66 …var settings = new JsonParser.Settings(10, TypeRegistry.FromFiles(UnittestIssuesReflection.Descrip… in JsonNameParseTest()
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/
DJsonFormatTest.java49 import com.google.protobuf.util.JsonFormat.TypeRegistry;
127 assertRoundTripEquals(message, TypeRegistry.getEmptyTypeRegistry()); in assertRoundTripEquals()
130 private void assertRoundTripEquals(Message message, TypeRegistry registry) throws Exception { in assertRoundTripEquals()
816 JsonFormat.TypeRegistry registry = JsonFormat.TypeRegistry.newBuilder() in testAnyFields()
/external/protobuf/
DMakefile.am168 csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs \
DCHANGES.txt188 * Library: Added TypeRegistry to support JSON parsing/formatting of Any.