Breaking change: Python nested message class __qualname__ now contains the outer message name. (Previous __qualname__ has the same result with __name__ for nested message that outer message name was not included)
example: message Foo { message Bar { bool bool_field = 1; } } nested = test_pb2.Foo.Bar() self.assertEqual('Bar', nested.__class__.__name__) self.assertEqual('Foo.Bar', nested.__class__.__qualname__) # It was 'Bar' before PiperOrigin-RevId: 695817876pull/19150/head
parent
a3733ac14d
commit
0720536eca
3 changed files with 16 additions and 20 deletions
@ -1,17 +0,0 @@ |
|||||||
#region Copyright notice and license |
|
||||||
// Protocol Buffers - Google's data interchange format |
|
||||||
// Copyright 2008 Google Inc. All rights reserved. |
|
||||||
// |
|
||||||
// Use of this source code is governed by a BSD-style |
|
||||||
// license that can be found in the LICENSE file or at |
|
||||||
// https://developers.google.com/open-source/licenses/bsd |
|
||||||
#endregion |
|
||||||
|
|
||||||
namespace Google.Protobuf.Reflection; |
|
||||||
|
|
||||||
internal sealed partial class FeatureSetDescriptor |
|
||||||
{ |
|
||||||
// Canonical serialized form of the edition defaults, generated by embed_edition_defaults. |
|
||||||
private const string DefaultsBase64 = |
|
||||||
"ChMYhAciACoMCAEQAhgCIAMoATACChMY5wciACoMCAIQARgBIAIoATABChMY6AciDAgBEAEYASACKAEwASoAIOYHKOgH"; |
|
||||||
} |
|
Loading…
Reference in new issue