Home
last modified time | relevance | path

Searched refs:json_name (Results 1 - 25 of 27) sorted by relevance

12

/third_party/protobuf/php/src/Google/Protobuf/Internal/
H A DFieldDescriptor.php40 private $json_name; variable
77 public function setJsonName($json_name)
79 $this->json_name = $json_name; variable
84 return $this->json_name;
251 $json_name = $proto->hasJsonName() ? $proto->getJsonName() : variable
254 $json_name = $proto->getJsonName(); variable
257 $json_name = implode('', array_map('ucwords', explode('_', $proto_name))); variable
259 $json_name = lcfirst($json_name); variable
[all...]
H A DFieldDescriptorProto.php75 * user has set a "json_name" option on this field, that option's value
79 * Generated from protobuf field <code>optional string json_name = 10;</code>
81 protected $json_name = null; variable
140 * @type string $json_name
142 * user has set a "json_name" option on this field, that option's value
472 * user has set a "json_name" option on this field, that option's value
476 * Generated from protobuf field <code>optional string json_name = 10;</code>
481 return isset($this->json_name) ? $this->json_name : '';
486 return isset($this->json_name);
507 $this->json_name = $var; global() variable
[all...]
H A DDescriptor.php118 public function getFieldByJsonName($json_name)
120 if (!isset($this->json_to_field[$json_name])) {
123 return $this->json_to_field[$json_name];
/third_party/protobuf/python/google/protobuf/
H A Ddescriptor.py540 has_default_value=True, containing_oneof=None, json_name=None,
552 has_default_value=True, containing_oneof=None, json_name=None,
570 if json_name is None:
571 self.json_name = _ToJsonName(name)
573 self.json_name = json_name
1115 if field_proto.json_name:
1116 json_name = field_proto.json_name
1118 json_name
[all...]
H A Djson_format.py227 name = field.json_name
265 name = field.json_name
497 fields_by_json_name = dict((f.json_name, f)
526 [f.json_name for f in message_descriptor.fields]))
/third_party/protobuf/php/src/Google/Protobuf/
H A DField.php71 * Generated from protobuf field <code>string json_name = 10;</code>
73 private $json_name = ''; variable
105 * @type string $json_name
331 * Generated from protobuf field <code>string json_name = 10;</code>
336 return $this->json_name;
342 * Generated from protobuf field <code>string json_name = 10;</code>
349 $this->json_name = $var; variable
/third_party/vulkan-loader/tests/framework/
H A Dtest_environment.cpp494 std::string full_json_name = icd_details.json_name;
544 void FrameworkEnvironment::add_implicit_layer(ManifestLayer layer_manifest, const std::string& json_name) noexcept {
545 add_layer_impl(TestLayerDetails{layer_manifest, json_name}, ManifestCategory::implicit_layer);
547 void FrameworkEnvironment::add_explicit_layer(ManifestLayer layer_manifest, const std::string& json_name) noexcept {
548 add_layer_impl(TestLayerDetails{layer_manifest, json_name}, ManifestCategory::explicit_layer);
550 void FrameworkEnvironment::add_fake_implicit_layer(ManifestLayer layer_manifest, const std::string& json_name) noexcept {
551 add_layer_impl(TestLayerDetails{layer_manifest, json_name}.set_is_fake(true), ManifestCategory::implicit_layer);
553 void FrameworkEnvironment::add_fake_explicit_layer(ManifestLayer layer_manifest, const std::string& json_name) noexcept {
554 add_layer_impl(TestLayerDetails{layer_manifest, json_name}.set_is_fake(true), ManifestCategory::explicit_layer);
575 env_var_vk_layer_paths.add_to_list((fs_ptr->location() / layer_details.json_name)
[all...]
H A Dtest_environment.h534 BUILDER_VALUE(TestICDDetails, std::string, json_name, "test_icd");
535 // Uses the json_name without modification - default is to append _1 in the json file to distinguish drivers
545 TestLayerDetails(ManifestLayer layer_manifest, const std::string& json_name) noexcept
546 : layer_manifest(layer_manifest), json_name(json_name) {} in json_name() function
548 BUILDER_VALUE(TestLayerDetails, std::string, json_name, "test_layer");
589 void add_implicit_layer(ManifestLayer layer_manifest, const std::string& json_name) noexcept;
591 void add_explicit_layer(ManifestLayer layer_manifest, const std::string& json_name) noexcept;
593 void add_fake_implicit_layer(ManifestLayer layer_manifest, const std::string& json_name) noexcept;
594 void add_fake_explicit_layer(ManifestLayer layer_manifest, const std::string& json_name) noexcep
[all...]
/third_party/protobuf/src/google/protobuf/util/internal/
H A Dutility.cc169 const google::protobuf::Type* type, StringPiece json_name) { in FindJsonFieldInTypeOrNull()
173 if (field.json_name() == json_name) { in FindJsonFieldInTypeOrNull()
168 FindJsonFieldInTypeOrNull( const google::protobuf::Type* type, StringPiece json_name) FindJsonFieldInTypeOrNull() argument
H A Dutility.h124 // json_name.
126 const google::protobuf::Type* type, StringPiece json_name);
H A Dtype_info.cc148 StringPiece camel_case_name = field.json_name(); in PopulateNameLookupTable()
H A Ddefault_value_objectwriter.cc384 new Node(preserve_proto_field_names_ ? field.name() : field.json_name(), in PopulateChildren()
H A Dprotostream_objectsource.cc219 field_name = field->json_name(); in WriteMessage()
/third_party/skia/third_party/externals/angle2/src/tests/restricted_traces/
H A Drestricted_trace_gold_tests.py484 json_name = os.path.join(ANGLE_SRC_DIR, 'src', 'tests', 'restricted_traces',
486 with open(json_name) as fp:
/third_party/protobuf/src/google/protobuf/util/
H A Dtype_resolver_util_test.cc425 EXPECT_EQ("optionalInt32", FindField(type, "optional_int32")->json_name()); in TEST_F()
431 EXPECT_EQ("@value", FindField(type, "value")->json_name()); in TEST_F()
H A Dtype_resolver_util.cc261 field->set_json_name(descriptor->json_name()); in ConvertFieldDescriptor()
/third_party/protobuf/src/google/protobuf/
H A Ddescriptor_unittest.cc650 // optional int32 field_name6 = 6 [json_name = "@type"]; in SetUp()
907 EXPECT_EQ("fieldName1", message4_->field(0)->json_name()); in TEST_F()
908 EXPECT_EQ("fieldName2", message4_->field(1)->json_name()); in TEST_F()
909 EXPECT_EQ("FieldName3", message4_->field(2)->json_name()); in TEST_F()
910 EXPECT_EQ("FieldName4", message4_->field(3)->json_name()); in TEST_F()
911 EXPECT_EQ("FIELDNAME5", message4_->field(4)->json_name()); in TEST_F()
912 EXPECT_EQ("@type", message4_->field(5)->json_name()); in TEST_F()
922 EXPECT_EQ("@type", proto.field(5).json_name()); in TEST_F()
927 EXPECT_EQ("fieldName1", proto.field(0).json_name()); in TEST_F()
928 EXPECT_EQ("fieldName2", proto.field(1).json_name()); in TEST_F()
[all...]
H A Dtype.pb.h695 // string json_name = 10;
697 const std::string& json_name() const;
704 void set_allocated_json_name(std::string* json_name);
1935 // string json_name = 10;
1939 inline const std::string& Field::json_name() const { in json_name() function in Field
1940 // @@protoc_insertion_point(field_get:google.protobuf.Field.json_name) in json_name()
1945 // @@protoc_insertion_point(field_set:google.protobuf.Field.json_name) in set_json_name()
1948 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.json_name) in mutable_json_name()
1962 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Field.json_name) in set_json_name()
1969 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.json_name) in set_json_name()
1986 set_allocated_json_name(std::string* json_name) set_allocated_json_name() argument
1992 json_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json_name, set_allocated_json_name() local
[all...]
H A Ddescriptor.h511 // Fill the json_name field of FieldDescriptorProto.
663 const std::string& json_name() const; // JSON name of this field.
723 // Whether the user has specified the json_name field option in the .proto
843 // Fill the json_name field of FieldDescriptorProto.
880 // Whether the user has specified the json_name field option in the .proto
1519 // Fill the json_name field of FieldDescriptorProto for all fields. Can only
2025 PROTOBUF_DEFINE_STRING_ACCESSOR(FieldDescriptor, json_name)
H A Dtype.pb.cc925 // string json_name = 10; in _InternalParse()
930 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Field.json_name")); in _InternalParse()
1031 // string json_name = 10; in _InternalSerialize()
1032 if (this->json_name().size() > 0) { in _InternalSerialize()
1036 "google.protobuf.Field.json_name"); in _InternalSerialize()
1088 // string json_name = 10; in ByteSizeLong()
1089 if (this->json_name().size() > 0) { in ByteSizeLong()
1171 if (from.json_name().size() > 0) { in MergeFrom()
H A Ddescriptor.cc2069 GOOGLE_LOG(ERROR) << "Cannot copy json_name to a proto of a different size."; in CopyJsonNameTo()
2126 GOOGLE_LOG(ERROR) << "Cannot copy json_name to a proto of a different size."; in CopyJsonNameTo()
2144 proto->set_json_name(json_name()); in CopyTo()
2195 proto->set_json_name(json_name()); in CopyJsonNameTo()
2732 contents->append("json_name = \""); in DebugString()
2733 contents->append(CEscape(json_name())); in DebugString()
4784 result->json_name_ = tables_->AllocateString(proto.json_name()); in BuildFieldOrExtension()
6153 // json_name option is not allowed on extension fields. Note that the in ValidateFieldOptions()
6154 // json_name field in FieldDescriptorProto is always populated by protoc in ValidateFieldOptions()
6157 // determine whether the json_name optio in ValidateFieldOptions()
[all...]
/third_party/protobuf/python/google/protobuf/internal/
H A Ddescriptor_test.py1052 '_field_name', 'FIELD_NAME', 'json_name']
1059 field.json_name = '@type'
1062 self.assertEqual(result.fields[index].json_name,
/third_party/protobuf/php/ext/google/protobuf/
H A Dphp-upb.c3438 const char *json_name; member
3909 return f->json_name; in upb_fielddef_jsonname()
4605 char* json_name = upb_malloc(alloc, size); in makejsonname() local
4606 getjsonname(name, json_name, size); in makejsonname()
4607 return json_name; in makejsonname()
4823 const char *json_name; in create_fielddef() local
4838 json_name = strviewdup( in create_fielddef()
4841 json_name = makejsonname(shortname, ctx->alloc); in create_fielddef()
4865 if (upb_strtable_lookup(&m->ntof, json_name, NULL)) { in create_fielddef()
4866 upb_status_seterrf(ctx->status, "duplicate json_name ( in create_fielddef()
[all...]
/third_party/protobuf/ruby/ext/google/protobuf_c/
H A Dupb.c2993 const char *json_name; member
3464 return f->json_name; in upb_fielddef_jsonname()
4142 char* json_name = upb_malloc(alloc, size); in makejsonname() local
4143 getjsonname(name, json_name, size); in makejsonname()
4144 return json_name; in makejsonname()
4360 const char *json_name; in create_fielddef() local
4375 json_name = strviewdup( in create_fielddef()
4378 json_name = makejsonname(shortname, ctx->alloc); in create_fielddef()
4402 if (upb_strtable_lookup(&m->ntof, json_name, NULL)) { in create_fielddef()
4403 upb_status_seterrf(ctx->status, "duplicate json_name ( in create_fielddef()
[all...]
/third_party/protobuf/src/google/protobuf/compiler/python/
H A Dpython_generator.cc1189 m["json_name"] = in PrintFieldDescriptor()
1190 field.has_json_name() ? ", json_name='" + field.json_name() + "'" : ""; in PrintFieldDescriptor()
1202 " serialized_options=$serialized_options$$json_name$, file=DESCRIPTOR," in PrintFieldDescriptor()

Completed in 65 milliseconds

12