diff options
author | Jon Skeet <jonskeet@google.com> | 2016-04-20 17:19:42 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2016-04-20 17:19:42 +0100 |
commit | c588ac42a2d8d0b6cb3163c6ee256fc9d771627e (patch) | |
tree | a60401d22ad9a58b416bf73bbc66538abf1e957b /csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs | |
parent | e539e9820ead318ccadc767ffbb4f923172cae63 (diff) | |
download | protobuf-c588ac42a2d8d0b6cb3163c6ee256fc9d771627e.tar.gz protobuf-c588ac42a2d8d0b6cb3163c6ee256fc9d771627e.tar.bz2 protobuf-c588ac42a2d8d0b6cb3163c6ee256fc9d771627e.zip |
Regenerate well-known types for C#
(There are documentation changes and new fields in descriptor.proto that have resulted
in changes to the serialized descriptor, but no breaking changes for C#.)
Diffstat (limited to 'csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs')
-rw-r--r-- | csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs b/csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs index 2ba2b96f..79a0319f 100644 --- a/csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs +++ b/csharp/src/Google.Protobuf/WellKnownTypes/FieldMask.cs @@ -159,6 +159,33 @@ namespace Google.Protobuf.WellKnownTypes { /// { /// mask: "user.displayName,photo" /// } + /// + /// # Field Masks and Oneof Fields + /// + /// Field masks treat fields in oneofs just as regular fields. Consider the + /// following message: + /// + /// message SampleMessage { + /// oneof test_oneof { + /// string name = 4; + /// SubMessage sub_message = 9; + /// } + /// } + /// + /// The field mask can be: + /// + /// mask { + /// paths: "name" + /// } + /// + /// Or: + /// + /// mask { + /// paths: "sub_message" + /// } + /// + /// Note that oneof type names ("test_oneof" in this case) cannot be used in + /// paths. /// </summary> [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class FieldMask : pb::IMessage<FieldMask> { |