Home
last modified time | relevance | path

Searched refs:JsonFormatter (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/
DJsonFormatterTest.cs55 … var formatter = new JsonFormatter(new JsonFormatter.Settings(formatDefaultValues: false)); in DefaultValues_WhenOmitted()
65 … var formatter = new JsonFormatter(new JsonFormatter.Settings(formatDefaultValues: true)); in DefaultValues_WhenIncluded()
97 var actualText = JsonFormatter.Default.Format(message); in AllSingleFields()
131JsonFormatter.Default.Format(new TestAllTypes { RepeatedInt32 = { 1, 2, 3, 4, 5 } })); in RepeatedField()
138JsonFormatter.Default.Format(new TestMap { MapStringString = { { "with spaces", "bar" }, { "a", "b… in MapField_StringString()
146JsonFormatter.Default.Format(new TestMap { MapInt32Int32 = { { 0, 1 }, { 2, 3 } } })); in MapField_Int32Int32()
154JsonFormatter.Default.Format(new TestMap { MapBoolBool = { { false, true }, { true, false } } })); in MapField_BoolBool()
164 string actualText = JsonFormatter.Default.Format(message); in DoubleRepresentations()
173 AssertJson("{ 'singleForeignEnum': 100 }", JsonFormatter.Default.Format(message)); in UnknownEnumValueNumeric_SingleField()
180 …n("{ 'repeatedForeignEnum': [ 'FOREIGN_BAZ', 100, 'FOREIGN_FOO' ] }", JsonFormatter.Default.Format… in UnknownEnumValueNumeric_RepeatedField()
[all …]
DJsonParserTest.cs130 var json = new JsonFormatter(new JsonFormatter.Settings(true)).Format(message); in SingularWrappers_ExplicitNulls()
236 var json = JsonFormatter.Default.Format(message);
806 …var formatter = new JsonFormatter(new JsonFormatter.Settings(false, TypeRegistry.FromMessages(Test… in Any_RegularMessage()
845 var formatter = new JsonFormatter(new JsonFormatter.Settings(false, registry)); in Any_WellKnownType()
859 var formatter = new JsonFormatter(new JsonFormatter.Settings(false, registry)); in Any_Nested()
DIssuesTest.cs79 JsonFormatter.Default.Format(message)); in JsonNameFormatTest()
DGeneratedMessageTest.cs703 Assert.AreEqual("{ \"c\": 31 }", JsonFormatter.Default.Format(message)); in CustomDiagnosticMessage_DirectToStringCall()
711 …Assert.AreEqual("{ \"singleForeignMessage\": { \"c\": 16 } }", JsonFormatter.Default.Format(messag… in CustomDiagnosticMessage_Nested()
719 JsonFormatter.Default.Format(message, writer); in CustomDiagnosticMessage_DirectToTextWriterCall()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/WellKnownTypes/
DFieldMaskPartial.cs63 var query = paths.Select(JsonFormatter.ToCamelCase); in ToJson()
64 JsonFormatter.WriteString(writer, string.Join(",", query.ToArray())); in ToJson()
66JsonFormatter.WriteString(writer, string.Join(",", paths.Select(JsonFormatter.ToCamelCase))); in ToJson()
76 JsonFormatter.Default.WriteList(writer, (IList)paths); in ToJson()
DWrappers.cs130 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
255 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
380 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
505 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
630 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
755 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
880 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1005 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1130 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
DEmpty.cs106 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
DStruct.cs149 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
395 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
603 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
DFieldMask.cs312 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
DSourceContext.cs117 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
DType.cs248 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
580 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
999 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1203 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1365 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
DTimestamp.cs189 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
DDuration.cs178 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
DApi.cs248 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
541 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
835 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
DAny.cs219 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/
DJsonFormatter.cs59 public sealed class JsonFormatter class
71 public static JsonFormatter Default { get; } = new JsonFormatter(Settings.Default);
74 … private static readonly JsonFormatter diagnosticFormatter = new JsonFormatter(Settings.Default);
115 static JsonFormatter() in JsonFormatter() method in Google.Protobuf.JsonFormatter
134 public JsonFormatter(Settings settings) in JsonFormatter() method in Google.Protobuf.JsonFormatter
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Conformance/
DProgram.cs113 … var formatter = new JsonFormatter(new JsonFormatter.Settings(false, typeRegistry)); in PerformRequest()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/TestProtos/
DUnittestIssues.cs140 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
231 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
322 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
461 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
580 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
756 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
933 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1064 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1186 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1432 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
[all …]
DUnittestProto3.cs988 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1675 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1827 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1978 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
2099 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
2202 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
2308 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
2452 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
2597 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
2737 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
[all …]
DUnittestImportPublicProto3.cs108 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
DUnittestImportProto3.cs122 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
DMapUnittestProto3.cs453 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
675 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
797 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
922 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1220 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1431 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1554 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/Reflection/
DDescriptor.cs245 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
534 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
895 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1104 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1260 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1557 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
1890 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
2057 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
2232 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
2413 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
[all …]
DFieldDescriptor.cs100 … JsonName = Proto.JsonName == "" ? JsonFormatter.ToCamelCase(Proto.Name) : Proto.JsonName; in FieldDescriptor()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/AddressBook/
DAddressbook.cs161 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
335 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()
473 return pb::JsonFormatter.ToDiagnosticString(this); in ToString()

12