File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
content/programming-guides Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -369,6 +369,25 @@ represented by the string `"3.1s"` in the special case handling. When that
369369}
370370```
371371
372+ Message types with special JSON encodings include:
373+
374+ - ` google.protobuf.Any `
375+ - ` google.protobuf.BoolValue `
376+ - ` google.protobuf.BytesValue `
377+ - ` google.protobuf.DoubleValue `
378+ - ` google.protobuf.Duration `
379+ - ` google.protobuf.FieldMask `
380+ - ` google.protobuf.FloatValue `
381+ - ` google.protobuf.Int32Value `
382+ - ` google.protobuf.Int64Value `
383+ - ` google.protobuf.ListValue `
384+ - ` google.protobuf.StringValue `
385+ - ` google.protobuf.Struct `
386+ - ` google.protobuf.Timestamp `
387+ - ` google.protobuf.UInt32Value `
388+ - ` google.protobuf.UInt64Value `
389+ - ` google.protobuf.Value `
390+
372391Note that ` google.protobuf.Empty ` is not considered to have any special JSON
373392mapping; it is simply a normal message that has zero fields. This means the
374393expected representation of an ` Empty ` packed into an ` Any ` is `{"@type ":
You can’t perform that action at this time.
0 commit comments