Home
last modified time | relevance | path

Searched refs:FieldMaskUtil (Results 1 – 11 of 11) sorted by relevance

/external/protobuf/src/google/protobuf/util/
Dfield_mask_util_test.cc50 if (FieldMaskUtil::SnakeCaseToCamelCase(input, &output)) { in SnakeCaseToCamelCase()
59 if (FieldMaskUtil::CamelCaseToSnakeCase(input, &output)) { in CamelCaseToSnakeCase()
122 EXPECT_EQ("", FieldMaskUtil::ToString(mask)); in TEST()
124 EXPECT_EQ("foo_bar", FieldMaskUtil::ToString(mask)); in TEST()
126 EXPECT_EQ("foo_bar,baz_quz", FieldMaskUtil::ToString(mask)); in TEST()
128 FieldMaskUtil::FromString("", &mask); in TEST()
130 FieldMaskUtil::FromString("fooBar", &mask); in TEST()
133 FieldMaskUtil::FromString("fooBar,bazQuz", &mask); in TEST()
142 EXPECT_TRUE(FieldMaskUtil::ToJsonString(mask, &value)); in TEST()
145 EXPECT_TRUE(FieldMaskUtil::ToJsonString(mask, &value)); in TEST()
[all …]
Dfield_mask_util.cc42 string FieldMaskUtil::ToString(const FieldMask& mask) { in ToString()
46 void FieldMaskUtil::FromString(StringPiece str, FieldMask* out) { in FromString()
55 bool FieldMaskUtil::SnakeCaseToCamelCase(StringPiece input, string* output) { in SnakeCaseToCamelCase()
84 bool FieldMaskUtil::CamelCaseToSnakeCase(StringPiece input, string* output) { in CamelCaseToSnakeCase()
101 bool FieldMaskUtil::ToJsonString(const FieldMask& mask, string* out) { in ToJsonString()
117 bool FieldMaskUtil::FromJsonString(StringPiece str, FieldMask* out) { in FromJsonString()
131 bool FieldMaskUtil::InternalIsValidPath(const Descriptor* descriptor, in InternalIsValidPath()
153 void FieldMaskUtil::InternalGetFieldMaskForAllFields( in InternalGetFieldMaskForAllFields()
194 const FieldMaskUtil::MergeOptions& options, in MergeMessage()
233 const FieldMaskUtil::MergeOptions& options,
[all …]
Dfield_mask_util.h44 class LIBPROTOBUF_EXPORT FieldMaskUtil {
151 class LIBPROTOBUF_EXPORT FieldMaskUtil::MergeOptions {
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/
DFieldMaskUtilTest.java42 assertTrue(FieldMaskUtil.isValid(NestedTestAllTypes.class, "payload")); in testIsValid()
43 assertFalse(FieldMaskUtil.isValid(NestedTestAllTypes.class, "nonexist")); in testIsValid()
44 assertTrue(FieldMaskUtil.isValid( in testIsValid()
46 assertTrue(FieldMaskUtil.isValid( in testIsValid()
48 assertTrue(FieldMaskUtil.isValid( in testIsValid()
50 assertTrue(FieldMaskUtil.isValid( in testIsValid()
52 assertFalse(FieldMaskUtil.isValid( in testIsValid()
55 assertTrue(FieldMaskUtil.isValid( in testIsValid()
56 NestedTestAllTypes.class, FieldMaskUtil.fromString("payload"))); in testIsValid()
57 assertFalse(FieldMaskUtil.isValid( in testIsValid()
[all …]
DFieldMaskTreeTest.java66 FieldMaskTree tree = new FieldMaskTree(FieldMaskUtil.fromString("foo,bar.baz,bar.quz")); in testMergeFromFieldMask()
68 tree.mergeFromFieldMask(FieldMaskUtil.fromString("foo.bar,bar")); in testMergeFromFieldMask()
73 FieldMaskTree tree = new FieldMaskTree(FieldMaskUtil.fromString("foo,bar.baz,bar.quz")); in testIntersectFieldPath()
119 FieldMaskUtil.MergeOptions options = new FieldMaskUtil.MergeOptions(); in testMerge()
DJsonFormatTest.java737 .setFieldMaskValue(FieldMaskUtil.fromString("foo.bar,baz")) in testFieldMask()
929 anyMessage = Any.pack(FieldMaskUtil.fromString("foo.bar,baz")); in testAnyFields()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DFieldMaskTree.java83 return FieldMaskUtil.toString(toFieldMask()); in toString()
195 Message source, Message.Builder destination, FieldMaskUtil.MergeOptions options) { in merge()
213 FieldMaskUtil.MergeOptions options) { in merge()
DFieldMaskUtil.java47 public class FieldMaskUtil { class
52 private FieldMaskUtil() {} in FieldMaskUtil() method in FieldMaskUtil
DJsonFormat.java634 generator.print("\"" + FieldMaskUtil.toString(value) + "\""); in printFieldMask()
1190 FieldMask value = FieldMaskUtil.fromString(json.getAsString()); in mergeFieldMask()
/external/protobuf/
DCHANGES.txt233 - FieldMaskUtil: utility functions to work with FieldMask.
245 - FieldMaskUtil: utility functions to work with FieldMask.
DMakefile.am343 java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java \