/external/icing/icing/file/ |
D | file-backed-proto_test.cc | 47 FileBackedProto<DocumentProto> file_proto(filesystem_, filename_); in TEST_F() local 48 ICING_ASSERT_OK(file_proto.Write(absl::make_unique<DocumentProto>(document))); in TEST_F() 49 EXPECT_THAT(file_proto.Read(), IsOkAndHolds(Pointee(EqualsProto(document)))); in TEST_F() 51 EXPECT_THAT(file_proto.Read(), IsOkAndHolds(Pointee(EqualsProto(document)))); in TEST_F() 52 EXPECT_THAT(file_proto.Read(), IsOkAndHolds(Pointee(EqualsProto(document)))); in TEST_F() 60 FileBackedProto<DocumentProto> file_proto(filesystem_, filename_); in TEST_F() local 61 EXPECT_THAT(file_proto.Read(), Not(IsOk())); // Nothing to read. in TEST_F() 64 file_proto.Write(absl::make_unique<DocumentProto>(document))); in TEST_F() 65 EXPECT_THAT(file_proto.Read(), in TEST_F() 70 FileBackedProto<DocumentProto> file_proto(filesystem_, filename_); in TEST_F() local [all …]
|
/external/protobuf/python/google/protobuf/ |
D | descriptor_pool.py | 361 file_proto = self._internal_db.FindFileByName(file_name) 364 file_proto = self._descriptor_db.FindFileByName(file_name) 367 if not file_proto: 369 return self._ConvertFileProtoToFileDescriptor(file_proto) 607 file_proto = self._descriptor_db.FindFileContainingExtension( 610 if file_proto is None: 614 file_desc = self._ConvertFileProtoToFileDescriptor(file_proto) 628 (file_proto.name, number)) 678 file_proto = self._internal_db.FindFileContainingSymbol(symbol) 681 file_proto = self._descriptor_db.FindFileContainingSymbol(symbol) [all …]
|
D | message_factory.py | 151 file_by_name = {file_proto.name: file_proto for file_proto in file_protos} 152 def _AddFile(file_proto): argument 153 for dependency in file_proto.dependency: 157 _FACTORY.pool.Add(file_proto) 160 return _FACTORY.GetMessages([file_proto.name for file_proto in file_protos])
|
D | proto_builder.py | 119 file_proto = descriptor_pb2.FileDescriptorProto() 120 file_proto.name = os.path.join(package.replace('.', '/'), proto_file_name) 121 file_proto.package = package 122 desc_proto = file_proto.message_type.add() 130 return file_proto
|
/external/protobuf/src/google/protobuf/ |
D | descriptor_unittest.cc | 2019 FileDescriptorProto file_proto; in TEST_F() local 2021 FileDescriptorProto::descriptor()->file()->CopyTo(&file_proto); in TEST_F() 2022 ASSERT_TRUE(pool.BuildFile(file_proto) != nullptr); in TEST_F() 2028 file_proto.Clear(); in TEST_F() 2029 file_proto.set_name("foo.proto"); in TEST_F() 2030 file_proto.add_dependency("google/protobuf/descriptor.proto"); in TEST_F() 2031 AddExtension(&file_proto, "google.protobuf.FieldOptions", "option1", 1000, in TEST_F() 2034 ASSERT_TRUE(pool.BuildFile(file_proto) != nullptr); in TEST_F() 2040 file_proto.Clear(); in TEST_F() 2041 file_proto.set_name("bar.proto"); in TEST_F() [all …]
|
D | descriptor_database.cc | 63 void RecordMessageNames(const FileDescriptorProto& file_proto, in RecordMessageNames() argument 65 for (const auto& d : file_proto.message_type()) { in RecordMessageNames() 66 RecordMessageNames(d, file_proto.package(), output); in RecordMessageNames() 78 FileDescriptorProto file_proto; in ForAllFileProtos() local 80 file_proto.Clear(); in ForAllFileProtos() 81 if (!db->FindFileByName(f, &file_proto)) { in ForAllFileProtos() 85 callback(file_proto, &set); in ForAllFileProtos() 97 [](const FileDescriptorProto& file_proto, std::set<std::string>* set) { in FindAllPackageNames() argument 98 set->insert(file_proto.package()); in FindAllPackageNames() 106 [](const FileDescriptorProto& file_proto, std::set<std::string>* set) { in FindAllMessageNames() argument [all …]
|
D | descriptor_database_unittest.cc | 57 FileDescriptorProto file_proto; in AddToDatabase() local 58 EXPECT_TRUE(TextFormat::ParseFromString(file_text, &file_proto)); in AddToDatabase() 59 database->Add(file_proto); in AddToDatabase() 162 FileDescriptorProto file_proto; in AddToDatabase() local 163 EXPECT_TRUE(TextFormat::ParseFromString(file_descriptor_text, &file_proto)); in AddToDatabase() 164 EXPECT_TRUE(test_case_->AddToDatabase(file_proto)); in AddToDatabase() 168 FileDescriptorProto file_proto; in AddToDatabaseWithError() local 169 EXPECT_TRUE(TextFormat::ParseFromString(file_descriptor_text, &file_proto)); in AddToDatabaseWithError() 170 EXPECT_FALSE(test_case_->AddToDatabase(file_proto)); in AddToDatabaseWithError()
|
/external/protobuf/php/src/Google/Protobuf/Internal/ |
D | GPBUtil.php | 267 $file_proto) argument 269 $option = $file_proto->getOptions(); 294 if ($file_proto->getPackage() === "google.protobuf") { 306 $file_proto) argument 309 return static::getClassNamePrefix($classname, $file_proto) . $classname; 314 $file_proto) argument 318 $parts[$i] = static::getClassNamePrefix($parts[$i], $file_proto) . $parts[$i]; 326 $file_proto, argument 339 $package = $file_proto->getPackage(); 347 static::getClassNameWithoutPackage($message_name_without_package, $file_proto); [all …]
|
D | Descriptor.php | 175 public static function buildFromProto($proto, $file_proto, $containing) argument 186 $file_proto, 203 $nested_proto, $file_proto, $message_name_without_package)); 209 $enum_proto, $file_proto, $message_name_without_package));
|
D | EnumDescriptor.php | 89 public static function buildFromProto($proto, $file_proto, $containing) argument 100 $file_proto,
|
/external/protobuf/python/google/protobuf/pyext/ |
D | descriptor_database.cc | 76 FileDescriptorProto* file_proto = in GetFileDescriptorProto() local 78 *output = *file_proto; in GetFileDescriptorProto() 99 FileDescriptorProto file_proto; in GetFileDescriptorProto() local 100 if (!file_proto.ParseFromArray(str, len)) { in GetFileDescriptorProto() 105 *output = file_proto; in GetFileDescriptorProto()
|
D | descriptor_pool.cc | 589 FileDescriptorProto file_proto; in AddSerializedFile() local 590 if (!file_proto.ParseFromArray(message_type, message_len)) { in AddSerializedFile() 599 generated_file = self->underlay->FindFileByName(file_proto.name()); in AddSerializedFile() 608 self->pool->BuildFileCollectingErrors(file_proto, in AddSerializedFile()
|
/external/tensorflow/tensorflow/python/kernel_tests/proto/ |
D | descriptor_source_test_base.py | 57 file_proto = proto.file.add( 59 enum_proto = file_proto.enum_type.add(name='DataType') 63 file_proto = proto.file.add( 67 message_proto = file_proto.message_type.add(name='TestCase') 91 message_proto = file_proto.message_type.add( 104 message_proto = file_proto.message_type.add(
|
/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_file.cc | 120 void CollectExtensions(const FileDescriptorProto& file_proto, in CollectExtensions() argument 124 if (!CollectExtensions(file_proto, extensions)) { in CollectExtensions() 129 file_proto.GetDescriptor()->full_name()); in CollectExtensions() 132 << file_proto.name() in CollectExtensions() 148 << file_proto.name() in CollectExtensions() 439 FileDescriptorProto file_proto; in GenerateDescriptorInitializationCodeForImmutable() local 440 file_->CopyTo(&file_proto); in GenerateDescriptorInitializationCodeForImmutable() 442 file_proto.SerializeToString(&file_data); in GenerateDescriptorInitializationCodeForImmutable() 444 CollectExtensions(file_proto, *file_->pool(), &extensions, file_data); in GenerateDescriptorInitializationCodeForImmutable() 508 FileDescriptorProto file_proto; in GenerateDescriptorInitializationCodeForMutable() local [all …]
|
D | java_shared_code_generator.cc | 129 FileDescriptorProto file_proto; in GenerateDescriptors() local 130 file_->CopyTo(&file_proto); in GenerateDescriptors() 133 file_proto.SerializeToString(&file_data); in GenerateDescriptors()
|
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/bindings/lua/ |
D | upbc.cc | 90 protobuf::FileDescriptorProto file_proto; in Generate() local 91 file->CopyTo(&file_proto); in Generate() 93 file_proto.SerializeToString(&file_data); in Generate()
|
/external/protobuf/src/google/protobuf/compiler/javamicro/ |
D | javamicro_file.cc | 97 FileDescriptorProto file_proto; in Validate() local 98 file_->CopyTo(&file_proto); in Validate() 99 if (UsesExtensions(file_proto)) { in Validate()
|
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upbc/ |
D | protoc-gen-upbdefs.cc | 106 protobuf::FileDescriptorProto file_proto; in WriteDefSource() local 107 file->CopyTo(&file_proto); in WriteDefSource() 109 file_proto.SerializeToString(&file_data); in WriteDefSource()
|
/external/grpc-grpc/test/cpp/util/ |
D | proto_reflection_descriptor_database.cc | 301 const protobuf::FileDescriptorProto file_proto = in AddFileFromResponse() local 303 if (known_files_.find(file_proto.name()) == known_files_.end()) { in AddFileFromResponse() 304 known_files_.insert(file_proto.name()); in AddFileFromResponse() 305 cached_db_.Add(file_proto); in AddFileFromResponse()
|
/external/protobuf/src/google/protobuf/compiler/javanano/ |
D | javanano_file.cc | 98 FileDescriptorProto file_proto; in Validate() local 99 file_->CopyTo(&file_proto); in Validate() 100 if (UsesExtensions(file_proto) && !params_.store_unknown_fields()) { in Validate()
|
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/ |
D | def.c | 1869 const google_protobuf_FileDescriptorProto *file_proto, in count_types_in_file() argument 1874 msgs = google_protobuf_FileDescriptorProto_message_type(file_proto, &n); in count_types_in_file() 1879 google_protobuf_FileDescriptorProto_enum_type(file_proto, &n); in count_types_in_file() 1882 google_protobuf_FileDescriptorProto_extension(file_proto, &n); in count_types_in_file() 1938 const google_protobuf_FileDescriptorProto *file_proto) { in build_filedef() argument 1946 count_types_in_file(file_proto, file); in build_filedef() 1957 if (!google_protobuf_FileDescriptorProto_has_name(file_proto)) { in build_filedef() 1962 strviewdup(ctx, google_protobuf_FileDescriptorProto_name(file_proto)); in build_filedef() 1966 if (google_protobuf_FileDescriptorProto_has_package(file_proto)) { in build_filedef() 1968 google_protobuf_FileDescriptorProto_package(file_proto); in build_filedef() [all …]
|
D | def.hpp | 407 FileDefPtr AddFile(const google_protobuf_FileDescriptorProto* file_proto, in AddFile() argument 410 upb_symtab_addfile(ptr_.get(), file_proto, status->ptr())); in AddFile()
|
/external/protobuf/python/google/protobuf/internal/ |
D | descriptor_test.py | 64 file_proto = descriptor_pb2.FileDescriptorProto( 67 message_proto = file_proto.message_type.add( 80 file_proto.message_type.add(name='ResponseMessage') 81 service_proto = file_proto.service.add( 92 self.pool.Add(file_proto) 93 self.my_file = self.pool.FindFileByName(file_proto.name) 426 file_proto = descriptor_pb2.FileDescriptorProto() 427 self.my_file.CopyToProto(file_proto) 429 file_proto.SerializeToString()) 920 file_proto = descriptor_pb2.FileDescriptorProto() [all …]
|
D | descriptor_pool_test.py | 632 file_proto = descriptor_pb2.FileDescriptorProto() 633 file_proto.package = 'collector' 634 file_proto.name = 'error_file' 635 message_type = file_proto.message_type.add() 645 enum_type = file_proto.enum_type.add() 650 self.db.Add(file_proto) 997 file_proto = descriptor_pb2.FileDescriptorProto( 999 message_proto = file_proto.message_type.add( 1006 enum_proto = file_proto.enum_type.add(name='TopEnum') 1008 file_proto.service.add(name='TopService') [all …]
|
/external/protobuf/src/google/protobuf/compiler/php/ |
D | php_generator.cc | 974 FileDescriptorProto* file_proto = files.add_file(); in GenerateAddFileToPool() local 975 file->CopyTo(file_proto); in GenerateAddFileToPool() 978 RepeatedPtrField<string>* dependency = file_proto->mutable_dependency(); in GenerateAddFileToPool() 988 file_proto->clear_extension(); in GenerateAddFileToPool() 990 file_proto->mutable_message_type(); in GenerateAddFileToPool()
|