Lines Matching defs:request
75 ConformanceRequest request = ConformanceRequest.Parser.ParseFrom(inputData);
76 ConformanceResponse response = PerformRequest(request, typeRegistry);
84 private static ConformanceResponse PerformRequest(ConformanceRequest request, TypeRegistry typeRegistry)
95 switch (request.PayloadCase)
98 if (request.TestCategory == global::Conformance.TestCategory.JsonIgnoreUnknownParsingTest)
103 switch (request.MessageType)
106 message = parser.Parse<ProtobufTestMessages.Proto3.TestAllTypesProto3>(request.JsonPayload);
109 message = parser.Parse<ProtobufTestMessages.Proto2.TestAllTypesProto2>(request.JsonPayload);
112 throw new Exception($" Protobuf request doesn't have specific payload type ({request.MessageType})");
116 switch (request.MessageType)
119 message = ProtobufTestMessages.Proto3.TestAllTypesProto3.Parser.ParseFrom(request.ProtobufPayload);
124 .ParseFrom(request.ProtobufPayload);
127 throw new Exception($" Protobuf request doesn't have specific payload type ({request.MessageType})");
133 throw new Exception("Unsupported request payload: " + request.PayloadCase);
146 switch (request.RequestedOutputFormat)
154 throw new Exception("Unsupported request output format: " + request.RequestedOutputFormat);