Searched refs:typeRegistry (Results 1 – 5 of 5) sorted by relevance
/third_party/protobuf/csharp/src/Google.Protobuf.Conformance/ |
D | Program.cs | 51 var typeRegistry = TypeRegistry.FromMessages( in Main() 56 while (RunTest(input, output, typeRegistry)) in Main() 63 … private static bool RunTest(BinaryReader input, BinaryWriter output, TypeRegistry typeRegistry) in RunTest() argument 76 ConformanceResponse response = PerformRequest(request, typeRegistry); in RunTest() 84 …te static ConformanceResponse PerformRequest(ConformanceRequest request, TypeRegistry typeRegistry) in PerformRequest() argument 102 var parser = new JsonParser(new JsonParser.Settings(20, typeRegistry)); in PerformRequest() 149 … var formatter = new JsonFormatter(new JsonFormatter.Settings(false, typeRegistry)); in PerformRequest()
|
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | TextFormat.java | 297 private final TypeRegistry typeRegistry; field in TextFormat.Printer 299 private Printer(boolean escapeNonAscii, TypeRegistry typeRegistry) { in Printer() argument 301 this.typeRegistry = typeRegistry; in Printer() 314 return new Printer(escapeNonAscii, typeRegistry); in escapingNonAscii() 323 public Printer usingTypeRegistry(TypeRegistry typeRegistry) { in usingTypeRegistry() argument 324 if (this.typeRegistry != TypeRegistry.getEmptyTypeRegistry()) { in usingTypeRegistry() 327 return new Printer(escapeNonAscii, typeRegistry); in usingTypeRegistry() 381 Descriptor contentType = typeRegistry.getDescriptorForTypeUrl(typeUrl); in printAny() 1544 private final TypeRegistry typeRegistry; field in TextFormat.Parser 1552 TypeRegistry typeRegistry, in Parser() argument [all …]
|
/third_party/protobuf/csharp/src/Google.Protobuf/ |
D | JsonParser.cs | 1023 … private Settings(int recursionLimit, TypeRegistry typeRegistry, bool ignoreUnknownFields) in Settings() argument 1026 TypeRegistry = ProtoPreconditions.CheckNotNull(typeRegistry, nameof(typeRegistry)); in Settings() 1043 …public Settings(int recursionLimit, TypeRegistry typeRegistry) : this(recursionLimit, typeRegistry… in Settings() argument 1066 public Settings WithTypeRegistry(TypeRegistry typeRegistry) => field in Google.Protobuf.JsonParser.Settings 1069 ProtoPreconditions.CheckNotNull(typeRegistry, nameof(typeRegistry)),
|
D | JsonFormatter.cs | 834 … Settings(bool formatDefaultValues, TypeRegistry typeRegistry) : this(formatDefaultValues, typeReg… in Settings() argument 845 TypeRegistry typeRegistry, in Settings() argument 849 TypeRegistry = typeRegistry ?? TypeRegistry.Empty; in Settings() 863 …ublic Settings WithTypeRegistry(TypeRegistry typeRegistry) => new Settings(FormatDefaultValues, ty… field in Google.Protobuf.JsonFormatter.Settings
|
/third_party/protobuf/conformance/ |
D | ConformanceJava.java | 50 private TypeRegistry typeRegistry; field in ConformanceJava 269 JsonFormat.Parser parser = JsonFormat.parser().usingTypeRegistry(typeRegistry); in doTest() 341 JsonFormat.printer().usingTypeRegistry(typeRegistry).print(testMessage)).build(); in doTest() 382 typeRegistry = TypeRegistry.newBuilder().add( in run()
|