| /third_party/protobuf/src/google/protobuf/util/ |
| H A D | field_mask_util.h | 31 // Defines utilities for the FieldMask well known type. 50 typedef google::protobuf::FieldMask FieldMask; typedef in google::protobuf::util::FieldMaskUtil 53 // Converts FieldMask to/from string, formatted by separating each path 55 static std::string ToString(const FieldMask& mask); 56 static void FromString(StringPiece str, FieldMask* out); 58 // Populates the FieldMask with the paths corresponding to the fields with the 62 FieldMask* out) { in FromFieldNumbers() 73 // Converts FieldMask to/from string, formatted according to proto3 JSON 74 // spec for FieldMask ( [all...] |
| H A D | field_mask_util.cc | 43 using google::protobuf::FieldMask; 45 std::string FieldMaskUtil::ToString(const FieldMask& mask) { in ToString() 49 void FieldMaskUtil::FromString(StringPiece str, FieldMask* out) { in FromString() 106 bool FieldMaskUtil::ToJsonString(const FieldMask& mask, std::string* out) { in ToJsonString() 122 bool FieldMaskUtil::FromJsonString(StringPiece str, FieldMask* out) { in FromJsonString() 166 FieldMask* out) { in GetFieldMaskForAllFields() 173 // A FieldMaskTree represents a FieldMask in a tree structure. For example, 174 // given a FieldMask "foo.bar,foo.baz,bar.baz", the FieldMaskTree will be: 188 void MergeFromFieldMask(const FieldMask& mask); 189 void MergeToFieldMask(FieldMask* mas [all...] |
| H A D | field_mask_util_test.cc | 117 using google::protobuf::FieldMask; 124 FieldMask mask; in TEST() 143 FieldMask mask; in TEST() 166 FieldMask mask; in TEST() 195 // FieldMask cannot be used to specify sub-fields of a repeated message. in TEST() 207 // FieldMask cannot be used to specify sub-fields of a repeated message. in TEST() 213 FieldMask mask; in TEST() 223 FieldMask mask; in TEST() 281 FieldMask in, out; in TEST() 329 FieldMask mask in TEST() [all...] |
| /third_party/protobuf/src/google/protobuf/ |
| H A D | field_mask.pb.cc | 20 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FieldMask> _instance; 28 new (ptr) PROTOBUF_NAMESPACE_ID::FieldMask(); in InitDefaultsscc_info_FieldMask_google_2fprotobuf_2ffield_5fmask_2eproto() 31 PROTOBUF_NAMESPACE_ID::FieldMask::InitAsDefaultInstance(); in InitDefaultsscc_info_FieldMask_google_2fprotobuf_2ffield_5fmask_2eproto() 43 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldMask, _internal_metadata_), 47 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::FieldMask, paths_), 50 { 0, -1, sizeof(PROTOBUF_NAMESPACE_ID::FieldMask)}, 84 void FieldMask::InitAsDefaultInstance() { in InitAsDefaultInstance() 86 class FieldMask::_Internal { 90 FieldMask::FieldMask( function in FieldMask 97 FieldMask::FieldMask(const FieldMask& from) FieldMask() function in FieldMask [all...] |
| H A D | field_mask.pb.h | 58 class FieldMask; 63 template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::FieldMask* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::FieldMask>(Arena*); 69 class PROTOBUF_EXPORT FieldMask PROTOBUF_FINAL : 70 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldMask) */ { 72 inline FieldMask() : FieldMask(nullptr) {} in FieldMask() function in PROTOBUF_FINAL 73 virtual ~FieldMask(); 75 FieldMask(const FieldMask 77 : FieldMask() { FieldMask() function in PROTOBUF_FINAL [all...] |
| /third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
| H A D | FieldMaskUtil.java | 43 import com.google.protobuf.FieldMask; 51 * Utility helper functions to work with {@link com.google.protobuf.FieldMask}. 61 * Converts a FieldMask to a string. 63 public static String toString(FieldMask fieldMask) { in toString() 83 * Parses from a string to a FieldMask. 85 public static FieldMask fromString(String value) { in fromString() 91 * Parses from a string to a FieldMask and validates all field paths. 95 public static FieldMask fromString(Class<? extends Message> type, String value) { in fromString() 101 * Constructs a FieldMask for a list of field paths in a certain type. 106 public static FieldMask fromStringLis [all...] |
| H A D | FieldMaskTree.java | 37 import com.google.protobuf.FieldMask; 47 * A tree representation of a FieldMask. Each leaf node in this tree represent 48 * a field path in the FieldMask. 50 * <p>For example, FieldMask "foo.bar,foo.baz,bar.baz" as a tree will be: 60 * a FieldMask to a canonical form, merge two FieldMasks, calculate the 62 * FieldMask in a message tree. 81 * Creates a FieldMaskTree for a given FieldMask. 83 FieldMaskTree(FieldMask mask) { in FieldMaskTree() 93 * Adds a field path to the tree. In a FieldMask, every field path matches the specified field as 130 /** Merges all field paths in a FieldMask int [all...] |
| H A D | JsonFormat.java | 60 import com.google.protobuf.FieldMask; 825 // Special-case FieldMask. in buildWellKnownTypePrinters() 827 FieldMask.getDescriptor().getFullName(), in buildWellKnownTypePrinters() 942 /** Prints google.protobuf.FieldMask */ 944 FieldMask value = FieldMask.parseFrom(toByteString(message)); in printFieldMask() 1409 // Special-case FieldMask. in buildWellKnownTypeParsers() 1411 FieldMask.getDescriptor().getFullName(), in buildWellKnownTypeParsers() 1556 FieldMask value = FieldMaskUtil.fromJsonString(json.getAsString()); in mergeFieldMask()
|
| /third_party/protobuf/java/util/src/test/java/com/google/protobuf/util/ |
| H A D | FieldMaskUtilTest.java | 36 import com.google.protobuf.FieldMask; 80 assertEquals("", FieldMaskUtil.toString(FieldMask.getDefaultInstance())); in testToString() 81 FieldMask mask = FieldMask.newBuilder().addPaths("foo").build(); in testToString() 83 mask = FieldMask.newBuilder().addPaths("foo").addPaths("bar").build(); in testToString() 88 FieldMask.newBuilder() in testToString() 99 FieldMask mask = FieldMaskUtil.fromString(""); in testFromString() 127 FieldMask mask = FieldMaskUtil.fromFieldNumbers(TestAllTypes.class); in testFromFieldNumbers() 152 FieldMask mask = FieldMask in testToJsonString() [all...] |
| /third_party/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/ |
| H A D | FieldMaskPartial.cs | 42 // Manually-written partial class for the FieldMask well-known type. 43 public partial class FieldMask : ICustomDiagnosticMessage class 78 writer.Write("{ \"@warning\": \"Invalid FieldMask\", \"paths\": "); in ToJson() 91 /// Returns a string representation of this <see cref="FieldMask"/> for diagnostic purposes. 107 /// Parses from a string to a FieldMask. 109 public static FieldMask FromString(string value) in FromString() 115 /// Parses from a string to a FieldMask and validates all field paths. 118 public static FieldMask FromString<T>(string value) where T : IMessage 124 /// Constructs a FieldMask for a list of field paths in a certain type. 127 public static FieldMask FromStringEnumerabl [all...] |
| H A D | FieldMask.cs | 36 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.FieldMask), global::Google.Protobuf.WellKnownTypes.FieldMask.Parser, new[]{ "Paths" }, null, null, null, null) in FieldMaskReflection() 44 /// `FieldMask` represents a set of symbolic field paths, for example: 88 /// If a FieldMask object is not present in a get operation, the 89 /// operation applies to all fields (as if a FieldMask of all fields 239 /// The implementation of any API method which has a FieldMask type field in the 243 public sealed partial class FieldMask : pb::IMessage<FieldMask> class 248 private static readonly pb::MessageParser<FieldMask> _parser = new pb::MessageParser<FieldMask>(() 264 public FieldMask() { FieldMask() method in Google.Protobuf.WellKnownTypes.FieldMask 271 public FieldMask(FieldMask other) : this() { FieldMask() method in Google.Protobuf.WellKnownTypes.FieldMask [all...] |
| /third_party/protobuf/csharp/src/Google.Protobuf/ |
| H A D | FieldMaskTree.cs | 42 /// <para>A tree representation of a FieldMask. Each leaf node in this tree represent 43 /// a field path in the FieldMask.</para> 45 /// <para>For example, FieldMask "foo.bar,foo.baz,bar.baz" as a tree will be:</para> 55 /// a FieldMask to a canonical form, merge two FieldMasks, calculate the 57 /// FieldMask in a message tree.</para> 78 /// Creates a FieldMaskTree for a given FieldMask. 80 public FieldMaskTree(FieldMask mask) in FieldMaskTree() 91 /// Adds a field path to the tree. In a FieldMask, every field path matches the 139 /// Merges all field paths in a FieldMask into this tree. 141 public FieldMaskTree MergeFromFieldMask(FieldMask mas [all...] |
| H A D | JsonFormatter.cs | 482 if (descriptor.FullName == FieldMask.Descriptor.FullName) in WriteWellKnownTypeValue() 532 var paths = (IList<string>) value.Descriptor.Fields[FieldMask.PathsFieldNumber].Accessor.GetValue(value); in WriteFieldMask() 533 writer.Write(FieldMask.ToJson(paths, DiagnosticOnly)); in WriteFieldMask()
|
| /third_party/protobuf/python/google/protobuf/internal/ |
| H A D | well_known_types_test.py | 394 mask = field_mask_pb2.FieldMask() 424 mask = field_mask_pb2.FieldMask() 435 mask = field_mask_pb2.FieldMask() 447 mask = field_mask_pb2.FieldMask() 451 mask = field_mask_pb2.FieldMask() 455 mask = field_mask_pb2.FieldMask() 459 mask = field_mask_pb2.FieldMask() 464 mask = field_mask_pb2.FieldMask() 465 out_mask = field_mask_pb2.FieldMask() 500 mask1 = field_mask_pb2.FieldMask() [all...] |
| H A D | well_known_types.py | 36 - FieldMask 417 class FieldMask(object): class 418 """Class for FieldMask message type.""" 423 """Converts FieldMask to string according to proto3 JSON spec.""" 430 """Converts string to FieldMask according to proto3 JSON spec.""" 437 """Checks whether the FieldMask is valid for Message Descriptor.""" 444 """Gets all direct fields of Message Descriptor to FieldMask.""" 450 """Converts a FieldMask to the canonical form. 454 is also in the FieldMask. Then sorts all paths in alphabetical order. 457 mask: The original FieldMask t [all...] |
| /third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/ |
| H A D | FieldMaskTest.cs | 46 var mask = new FieldMask { Paths = { input } }; in ToString_Invalid() 56 var mask = new FieldMask { Paths = { "x", "foo__bar", @"x\y" } }; in ToString_Invalid_Precise() 58 "{ \"@warning\": \"Invalid FieldMask\", \"paths\": [ \"x\", \"foo__bar\", \"x\\\\y\" ] }", in ToString_Invalid_Precise()
|
| /third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
| H A D | FieldMaskTest.cs | 47 var mask = new FieldMask { Paths = { input } }; in ToString_Invalid() 57 var mask = new FieldMask { Paths = { "x", "foo__bar", @"x\y" } }; in ToString_Invalid_Precise() 59 "{ \"@warning\": \"Invalid FieldMask\", \"paths\": [ \"x\", \"foo__bar\", \"x\\\\y\" ] }", in ToString_Invalid_Precise() 66 Assert.IsTrue(FieldMask.IsValid<NestedTestAllTypes>("payload")); in IsValid() 67 Assert.IsFalse(FieldMask.IsValid<NestedTestAllTypes>("nonexist")); in IsValid() 68 Assert.IsTrue(FieldMask.IsValid<NestedTestAllTypes>("payload.single_int32")); in IsValid() 69 Assert.IsTrue(FieldMask.IsValid<NestedTestAllTypes>("payload.repeated_int32")); in IsValid() 70 Assert.IsTrue(FieldMask.IsValid<NestedTestAllTypes>("payload.single_nested_message")); in IsValid() 71 Assert.IsTrue(FieldMask.IsValid<NestedTestAllTypes>("payload.repeated_nested_message")); in IsValid() 72 Assert.IsFalse(FieldMask in IsValid() [all...] |
| /third_party/protobuf/php/src/Google/Protobuf/ |
| H A D | FieldMask.php | 12 * `FieldMask` represents a set of symbolic field paths, for example: 46 * If a FieldMask object is not present in a get operation, the 47 * operation applies to all fields (as if a FieldMask of all fields 166 * The implementation of any API method which has a FieldMask type field in the 170 * Generated from protobuf message <code>google.protobuf.FieldMask</code> 172 class FieldMask extends \Google\Protobuf\Internal\Message class 192 \GPBMetadata\Google\Protobuf\FieldMask::initOnce();
|
| /third_party/protobuf/csharp/src/Google.Protobuf.Test/ |
| H A D | FieldMaskTreeTest.cs | 95 tree.MergeFromFieldMask(new FieldMask in MergeFromFieldMask() 105 tree.MergeFromFieldMask(new FieldMask in MergeFromFieldMask() 120 tree.MergeFromFieldMask(new FieldMask in IntersectFieldPath() 162 private void Merge(FieldMaskTree tree, IMessage source, IMessage destination, FieldMask.MergeOptions options, bool useDynamicMessage) in Merge() 216 FieldMask.MergeOptions options = new FieldMask.MergeOptions(); in Merge()
|
| H A D | JsonFormatterTest.cs | 539 var mask = new FieldMask { Paths = { input } }; in FieldMaskInvalid() 546 var fieldMask = new FieldMask { Paths = { "", "single", "with_underscore", "nested.field.name", "nested..double_dot" } }; in FieldMaskStandalone() 550 fieldMask = new FieldMask { Paths = { "x\\y" } }; in FieldMaskStandalone() 557 var message = new TestWellKnownTypes { FieldMaskField = new FieldMask { Paths = { "user.display_name", "photo" } } }; in FieldMaskField()
|
| /third_party/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/ |
| H A D | UnittestWellKnownTypes.cs | 284 private global::Google.Protobuf.WellKnownTypes.FieldMask fieldMaskField_; 286 public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMaskField { 787 FieldMaskField = new global::Google.Protobuf.WellKnownTypes.FieldMask(); in MergeFrom() 910 FieldMaskField = new global::Google.Protobuf.WellKnownTypes.FieldMask(); in MergeFrom() 1057 FieldMaskField = new global::Google.Protobuf.WellKnownTypes.FieldMask(); in IBufferMessage.InternalMergeFrom() 1267 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.FieldMask> _repeated_fieldMaskField_codec 1268 = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.WellKnownTypes.FieldMask.Parser); 1269 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> fieldMaskField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask>(); 1271 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> FieldMaskFiel [all...] |
| /third_party/protobuf/php/src/GPBMetadata/Google/Protobuf/ |
| H A D | FieldMask.php | 7 class FieldMask class
|
| /third_party/protobuf/php/src/Google/Protobuf/Internal/ |
| H A D | GPBUtil.php | 36 use Google\Protobuf\FieldMask; 533 $field_mask = new FieldMask(); 599 is_a($msg, "Google\Protobuf\FieldMask") ||
|
| /third_party/protobuf/php/tests/ |
| H A D | WellKnownTest.php | 17 use Google\Protobuf\FieldMask; 245 $m = new FieldMask();
|
| H A D | EncodeDecodeTest.php | 24 use Google\Protobuf\FieldMask; 1230 $m = new FieldMask(); 1238 $m = new FieldMask(); 1245 $m = new FieldMask();
|