• Home
  • Raw
  • Download

Lines Matching +full:is +full:- +full:accessor +full:- +full:descriptor

2 // Protocol Buffers - Google's data interchange format
4 // https://developers.google.com/protocol-buffers/
20 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
47 /// [root] -+- foo -+- bar
49 /// | +- baz
51 /// +- bar --- baz
92 /// specified field as well as all its sub-fields. For example, a field path
94 /// a field path to the tree, redundant sub-paths will be removed. That is,
97 /// Likewise, if the field path to add is a sub-path of an existing leaf node,
119 // The path to add is a sub-path of an existing leaf node. in AddFieldPath()
133 // Turn the matching node into a leaf node (i.e., remove sub-paths). in AddFieldPath()
168 /// Gathers all field paths in a sub-tree.
207 // The given path is a sub-path of an existing leaf node in the tree. in IntersectFieldPath()
219 // node is in the intersection. in IntersectFieldPath()
233 if (source.Descriptor != destination.Descriptor) in Merge()
247 …/// Merges all fields specified by a sub-tree from <paramref name="source"/> to <paramref name="de…
256 if (source.Descriptor != destination.Descriptor) in Merge()
258 …dProtocolBufferException($"source ({source.Descriptor}) and destination ({destination.Descriptor})… in Merge()
261 var descriptor = source.Descriptor; in Merge()
264 var field = descriptor.FindFieldByName(entry.Key); in Merge()
267 … Debug.WriteLine($"Cannot find field \"{entry.Key}\" in message type \"{descriptor.FullName}\""); in Merge()
276 …Debug.WriteLine($"Field \"{field.FullName}\" is not a singular message field and cannot have sub-f… in Merge()
280 var sourceField = field.Accessor.GetValue(source); in Merge()
281 var destinationField = field.Accessor.GetValue(destination); in Merge()
285 … // If the message field is not present in both source and destination, skip recursing in Merge()
294 field.Accessor.SetValue(destination, destinationField); in Merge()
306 field.Accessor.Clear(destination); in Merge()
309 var sourceField = (IList)field.Accessor.GetValue(source); in Merge()
310 var destinationField = (IList)field.Accessor.GetValue(destination); in Merge()
318 var sourceField = field.Accessor.GetValue(source); in Merge()
325 field.Accessor.Clear(destination); in Merge()
329 field.Accessor.SetValue(destination, sourceField); in Merge()
337 … var destinationValue = (IMessage)field.Accessor.GetValue(destination); in Merge()
344 … field.Accessor.SetValue(destination, field.MessageType.Parser.ParseFrom(sourceByteString)); in Merge()
354 field.Accessor.SetValue(destination, sourceField); in Merge()
358 field.Accessor.Clear(destination); in Merge()