Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/conformance/
DConformanceJava.java4 import com.google.protobuf.util.JsonFormat.TypeRegistry;
9 private TypeRegistry typeRegistry;
129 typeRegistry = TypeRegistry.newBuilder().add( in run()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java104 return new Printer(TypeRegistry.getEmptyTypeRegistry(), false, false, false); in printer()
111 private final TypeRegistry registry;
117 TypeRegistry registry, in Printer()
133 public Printer usingTypeRegistry(TypeRegistry registry) { in usingTypeRegistry()
134 if (this.registry != TypeRegistry.getEmptyTypeRegistry()) { in usingTypeRegistry()
227 return new Parser(TypeRegistry.getEmptyTypeRegistry()); in parser()
234 private final TypeRegistry registry;
236 private Parser(TypeRegistry registry) { in Parser()
246 public Parser usingTypeRegistry(TypeRegistry registry) { in usingTypeRegistry()
247 if (this.registry != TypeRegistry.getEmptyTypeRegistry()) { in usingTypeRegistry()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/
DJsonFormatter.cs571 MessageDescriptor descriptor = settings.TypeRegistry.Find(typeName); in WriteAny()
833 public TypeRegistry TypeRegistry { get; } property in Google.Protobuf.JsonFormatter.Settings
842 … public Settings(bool formatDefaultValues) : this(formatDefaultValues, TypeRegistry.Empty) in Settings()
852 public Settings(bool formatDefaultValues, TypeRegistry typeRegistry) in Settings()
855 TypeRegistry = ProtoPreconditions.CheckNotNull(typeRegistry, nameof(typeRegistry)); in Settings()
DJsonParser.cs519 MessageDescriptor descriptor = settings.TypeRegistry.Find(typeName); in MergeAny()
997 public TypeRegistry TypeRegistry { get; } property in Google.Protobuf.JsonParser.Settings
1003 public Settings(int recursionLimit) : this(recursionLimit, TypeRegistry.Empty) in Settings()
1012 public Settings(int recursionLimit, TypeRegistry typeRegistry) in Settings()
1015 TypeRegistry = ProtoPreconditions.CheckNotNull(typeRegistry, nameof(typeRegistry)); in Settings()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/
DJsonFormatterTest.cs470 …var formatter = new JsonFormatter(new JsonFormatter.Settings(false, TypeRegistry.FromMessages(Time… in AnyWellKnownType()
479 …var formatter = new JsonFormatter(new JsonFormatter.Settings(false, TypeRegistry.FromMessages(Test… in AnyMessageType()
488 …var formatter = new JsonFormatter(new JsonFormatter.Settings(false, TypeRegistry.FromMessages(Test… in AnyMessageType_CustomPrefix()
497 … var registry = TypeRegistry.FromMessages(TestWellKnownTypes.Descriptor, TestAllTypes.Descriptor); in AnyNested()
DIssuesTest.cs66 …var settings = new JsonParser.Settings(10, TypeRegistry.FromFiles(UnittestIssuesReflection.Descrip… in JsonNameParseTest()
DJsonParserTest.cs805 var registry = TypeRegistry.FromMessages(TestAllTypes.Descriptor); in Any_RegularMessage()
806 …var formatter = new JsonFormatter(new JsonFormatter.Settings(false, TypeRegistry.FromMessages(Test… in Any_RegularMessage()
819 var registry = TypeRegistry.FromMessages(TestAllTypes.Descriptor); in Any_CustomPrefix()
844 var registry = TypeRegistry.FromMessages(Timestamp.Descriptor); in Any_WellKnownType()
858 … var registry = TypeRegistry.FromMessages(TestWellKnownTypes.Descriptor, TestAllTypes.Descriptor); in Any_Nested()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/test/java/com/google/protobuf/util/
DJsonFormatTest.java50 import com.google.protobuf.util.JsonFormat.TypeRegistry;
128 assertRoundTripEquals(message, TypeRegistry.getEmptyTypeRegistry()); in assertRoundTripEquals()
131 private void assertRoundTripEquals(Message message, TypeRegistry registry) throws Exception { in assertRoundTripEquals()
808 JsonFormat.TypeRegistry registry = in testAnyFields()
809 JsonFormat.TypeRegistry.newBuilder().add(TestAllTypes.getDescriptor()).build(); in testAnyFields()
1231 JsonFormat.TypeRegistry registry = in testEmptyWrapperTypesInAny()
1232 JsonFormat.TypeRegistry.newBuilder().add(TestAllTypes.getDescriptor()).build(); in testEmptyWrapperTypesInAny()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/
DMakefile.am167 csharp/src/Google.Protobuf/Reflection/TypeRegistry.cs \
DCHANGES.txt320 * Library: Added TypeRegistry to support JSON parsing/formatting of Any.