Home
last modified time | relevance | path

Searched refs:json_name (Results 1 – 23 of 23) sorted by relevance

/external/protobuf/csharp/protos/
Dunittest_issues.proto122 // Message for testing the effects for of the json_name option
124 string description = 2 [json_name = "desc"];
125 string guid = 3 [json_name = "exid"];
/external/protobuf/src/google/protobuf/util/internal/
Dutility.cc165 const google::protobuf::Type* type, StringPiece json_name) { in FindJsonFieldInTypeOrNull() argument
169 if (field.json_name() == json_name) { in FindJsonFieldInTypeOrNull()
Dutility.h133 const google::protobuf::Type* type, StringPiece json_name);
Dtype_info.cc139 StringPiece camel_case_name = field.json_name(); in PopulateNameLookupTable()
Ddefault_value_objectwriter.cc366 field.json_name(), field_type, kind, in PopulateChildren()
Dprotostream_objectsource.cc196 field_name = field->json_name(); in WriteMessage()
/external/protobuf/src/google/protobuf/
Dtype.pb.cc1293 this->json_name().data(), this->json_name().length(), in MergePartialFromCodedStream()
1398 if (this->json_name().size() > 0) { in SerializeWithCachedSizes()
1400 this->json_name().data(), this->json_name().length(), in SerializeWithCachedSizes()
1404 10, this->json_name(), output); in SerializeWithCachedSizes()
1480 if (this->json_name().size() > 0) { in SerializeWithCachedSizesToArray()
1482 this->json_name().data(), this->json_name().length(), in SerializeWithCachedSizesToArray()
1487 10, this->json_name(), target); in SerializeWithCachedSizesToArray()
1555 if (this->json_name().size() > 0) { in ByteSize()
1558 this->json_name()); in ByteSize()
1624 if (from.json_name().size() > 0) { in MergeFrom()
[all …]
Dtype.pb.h489 const ::std::string& json_name() const;
495 void set_allocated_json_name(::std::string* json_name);
1268 inline const ::std::string& Field::json_name() const { in json_name() function
1298 inline void Field::set_allocated_json_name(::std::string* json_name) { in set_allocated_json_name() argument
1299 if (json_name != NULL) { in set_allocated_json_name()
1304 …name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name); in set_allocated_json_name()
Ddescriptor_unittest.cc775 EXPECT_EQ("fieldName1", message4_->field(0)->json_name()); in TEST_F()
776 EXPECT_EQ("fieldName2", message4_->field(1)->json_name()); in TEST_F()
777 EXPECT_EQ("fieldName3", message4_->field(2)->json_name()); in TEST_F()
778 EXPECT_EQ("fieldName4", message4_->field(3)->json_name()); in TEST_F()
779 EXPECT_EQ("fIELDNAME5", message4_->field(4)->json_name()); in TEST_F()
780 EXPECT_EQ("@type", message4_->field(5)->json_name()); in TEST_F()
790 EXPECT_EQ("@type", proto.field(5).json_name()); in TEST_F()
795 EXPECT_EQ("fieldName1", proto.field(0).json_name()); in TEST_F()
796 EXPECT_EQ("fieldName2", proto.field(1).json_name()); in TEST_F()
797 EXPECT_EQ("fieldName3", proto.field(2).json_name()); in TEST_F()
[all …]
Dtype.proto136 string json_name = 10; field
Ddescriptor.h514 const string& json_name() const; // JSON name of this field.
1679 PROTOBUF_DEFINE_STRING_ACCESSOR(FieldDescriptor, json_name) in PROTOBUF_DEFINE_STRING_ACCESSOR()
Ddescriptor.pb.cc4513 this->json_name().data(), this->json_name().length(), in MergePartialFromCodedStream()
4619 this->json_name().data(), this->json_name().length(), in SerializeWithCachedSizes()
4623 10, this->json_name(), output); in SerializeWithCachedSizes()
4712 this->json_name().data(), this->json_name().length(), in SerializeWithCachedSizesToArray()
4717 10, this->json_name(), target); in SerializeWithCachedSizesToArray()
4793 this->json_name()); in ByteSize()
5258 const ::std::string& FieldDescriptorProto::json_name() const { in json_name() function in google::protobuf::FieldDescriptorProto
5288 void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) { in set_allocated_json_name() argument
5289 if (json_name != NULL) { in set_allocated_json_name()
5294 …name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name); in set_allocated_json_name()
Ddescriptor.proto194 // user has set a "json_name" option on this field, that option's value
197 optional string json_name = 10; field
Ddescriptor.pb.h1163 const ::std::string& json_name() const;
1169 void set_allocated_json_name(::std::string* json_name);
4967 inline const ::std::string& FieldDescriptorProto::json_name() const { in json_name() function
4997 inline void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) { in set_allocated_json_name() argument
4998 if (json_name != NULL) { in set_allocated_json_name()
5003 …name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name); in set_allocated_json_name()
Ddescriptor.cc1845 proto->set_json_name(json_name()); in CopyTo()
1894 proto->set_json_name(json_name()); in CopyJsonNameTo()
4226 result->json_name_ = tables_->AllocateString(proto.json_name()); in BuildFieldOrExtension()
/external/protobuf/src/google/protobuf/util/
Dtype_resolver_util_test.cc341 EXPECT_EQ("optionalInt32", FindField(type, "optional_int32")->json_name()); in TEST_F()
346 EXPECT_EQ("@value", FindField(type, "value")->json_name()); in TEST_F()
Dtype_resolver_util.cc162 field->set_json_name(descriptor->json_name()); in ConvertFieldDescriptor()
Djson_format_proto3.proto175 int32 value = 1 [json_name = "@value"];
/external/protobuf/src/google/protobuf/util/internal/testdata/
Dbooks.proto76 optional uint64 id = 1 [json_name = "@id"];
/external/protobuf/java/util/src/test/proto/com/google/protobuf/util/
Djson_test.proto200 int32 value = 1 [json_name = "@value"];
/external/protobuf/
DCHANGES.txt90 * `json_name` option is now honored
136 * Added a new field option "json_name". By default proto field names are
/external/protobuf/util/
DCHANGES.txt90 * `json_name` option is now honored
136 * Added a new field option "json_name". By default proto field names are
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.h2145 bool set_json_name(const char* json_name, upb::Status* s);