Home
last modified time | relevance | path

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

12

/external/python/apitools/apitools/base/py/
Dencoding.py317 field.type, json_name=value) or value
572 def AddCustomJsonEnumMapping(enum_type, python_name, json_name, argument
595 _CheckForExistingMappings('enum', enum_type, python_name, json_name)
596 field_mappings[python_name] = json_name
599 def AddCustomJsonFieldMapping(message_type, python_name, json_name, argument
626 _CheckForExistingMappings('field', message_type, python_name, json_name)
627 field_mappings[python_name] = json_name
630 def GetCustomJsonEnumMapping(enum_type, python_name=None, json_name=None): argument
633 python_name=python_name, json_name=json_name,
637 def GetCustomJsonFieldMapping(message_type, python_name=None, json_name=None): argument
[all …]
Dutil.py198 return [encoding.GetCustomJsonFieldMapping(request_type, json_name=p) or p
/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/python/google-api-python-client/googleapiclient/
Dchannel.py237 for json_name, param_name in six.iteritems(CHANNEL_PARAMS):
238 value = resp.get(json_name)
/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()
/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
/external/python/apitools/apitools/gen/
Dextended_descriptor.py73 json_name = messages.StringField(2) variable in ExtendedEnumDescriptor.JsonEnumMapping
123 json_name = messages.StringField(2) variable in ExtendedMessageDescriptor.JsonFieldMapping
226 mapping.json_name),
Dmessage_registry.py210 python_name=enum_value.name, json_name=enum_name))
281 python_name=field.name, json_name=name))
/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/grpc-grpc-java/documentation/
Dserver-reflection-tutorial.md146 optional string name = 1[json_name = "name"];
/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/nos/host/generic/nugget/proto/google/protobuf/
Ddescriptor.proto197 // user has set a "json_name" option on this field, that option's value
200 optional string json_name = 10; field
/external/nanopb-c/generator/proto/google/protobuf/
Ddescriptor.proto208 // user has set a "json_name" option on this field, that option's value
211 optional string json_name = 10; field

12