Home
last modified time | relevance | path

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

/external/protobuf/python/google/protobuf/internal/
Dencoder.py121 def SpecificSizer(field_number, is_repeated, is_packed): argument
131 elif is_repeated:
150 def SpecificSizer(field_number, is_repeated, is_packed): argument
160 elif is_repeated:
179 def SpecificSizer(field_number, is_repeated, is_packed): argument
187 elif is_repeated:
221 def StringSizer(field_number, is_repeated, is_packed): argument
228 if is_repeated:
243 def BytesSizer(field_number, is_repeated, is_packed): argument
250 if is_repeated:
[all …]
Ddecoder.py183 def SpecificDecoder(field_number, is_repeated, is_packed, key, new_default): argument
202 elif is_repeated:
304 def StringDecoder(field_number, is_repeated, is_packed, key, new_default): argument
311 if is_repeated:
342 def BytesDecoder(field_number, is_repeated, is_packed, key, new_default): argument
348 if is_repeated:
379 def GroupDecoder(field_number, is_repeated, is_packed, key, new_default): argument
387 if is_repeated:
426 def MessageDecoder(field_number, is_repeated, is_packed, key, new_default): argument
432 if is_repeated:
/external/protobuf/src/google/protobuf/
Dextension_set.cc114 bool is_repeated, bool is_packed) { in RegisterExtension() argument
118 ExtensionInfo info(type, is_repeated, is_packed); in RegisterExtension()
137 bool is_repeated, bool is_packed, in RegisterEnumExtension() argument
140 ExtensionInfo info(type, is_repeated, is_packed); in RegisterEnumExtension()
149 bool is_repeated, bool is_packed, in RegisterMessageExtension() argument
153 ExtensionInfo info(type, is_repeated, is_packed); in RegisterMessageExtension()
179 GOOGLE_DCHECK(!iter->second.is_repeated); in Has()
208 GOOGLE_DCHECK_EQ((EXTENSION).is_repeated ? REPEATED : OPTIONAL, LABEL); \
234 extension->is_repeated = false; \
264 extension->is_repeated = true; \
[all …]
Dwire_format.cc518 if (field->is_repeated()) { \ in ParseAndMergeField()
551 if (field->is_repeated()) { in ParseAndMergeField()
572 if (field->is_repeated()) { in ParseAndMergeField()
583 if (field->is_repeated()) { in ParseAndMergeField()
593 if (field->is_repeated()) { in ParseAndMergeField()
609 if (field->is_repeated()) { in ParseAndMergeField()
746 !field->is_repeated()) { in SerializeFieldWithCachedSizes()
753 if (field->is_repeated()) { in SerializeFieldWithCachedSizes()
771 const CPPTYPE value = field->is_repeated() ? \ in SerializeFieldWithCachedSizes()
806 field->is_repeated() ? \ in SerializeFieldWithCachedSizes()
[all …]
Dextension_set_heavy.cc74 if (iter->second.is_repeated) { in AppendToList()
107 GOOGLE_DCHECK_EQ((EXTENSION).is_repeated ? FieldDescriptor::LABEL_REPEATED \
131 extension->is_repeated = false; in MutableMessage()
150 extension->is_repeated = true; in AddMessage()
187 output->is_repeated = extension->is_repeated(); in Find()
254 if (is_repeated) { in SpaceUsedExcludingSelf()
326 if (is_repeated) { in SerializeFieldWithCachedSizesToArray()
432 if (type != WireFormatLite::TYPE_MESSAGE || is_repeated) { in SerializeMessageSetItemWithCachedSizesToArray()
Ddynamic_message.cc248 if (!field->is_repeated()) { \ in DynamicMessage()
265 if (!field->is_repeated()) { in DynamicMessage()
276 if (!field->is_repeated()) { in DynamicMessage()
294 if (!field->is_repeated()) { in DynamicMessage()
326 if (field->is_repeated()) { in ~DynamicMessage()
394 !field->is_repeated()) { in CrossLinkPrototypes()
Dtext_format.cc291 !field->is_repeated() && reflection->HasField(*message, field)) { in ConsumeField()
326 if (field->is_repeated()) { in ConsumeFieldMessage()
343 if (field->is_repeated()) { \ in ConsumeFieldValue()
929 field->is_repeated() && in PrintField()
938 if (field->is_repeated()) { in PrintField()
960 if (!field->is_repeated()) { in PrintField()
1035 GOOGLE_DCHECK(field->is_repeated() || (index == -1)) in PrintFieldValue()
1041 generator.Print(TO_STRING(field->is_repeated() ? \ in PrintFieldValue()
1056 const string& value = field->is_repeated() ? in PrintFieldValue()
1073 if (field->is_repeated()) { in PrintFieldValue()
[all …]
Dreflection_ops.cc65 if (field->is_repeated()) { in Merge()
154 if (field->is_repeated()) { in IsInitialized()
184 if (field->is_repeated()) { in DiscardUnknownFields()
240 if (field->is_repeated()) { in FindInitializationErrors()
Dextension_set.h92 inline ExtensionInfo(FieldType type, bool is_repeated, bool is_packed) in ExtensionInfo()
93 : type(type), is_repeated(is_repeated), is_packed(is_packed), in ExtensionInfo()
97 bool is_repeated; member
167 bool is_repeated, bool is_packed);
170 bool is_repeated, bool is_packed,
174 bool is_repeated, bool is_packed,
410 bool is_repeated; member
Ddescriptor.h397 bool is_repeated() const; // shorthand for label() == LABEL_REPEATED
1297 inline bool FieldDescriptor::is_repeated() const { in is_repeated() function
1302 return is_repeated() && IsTypePackable(type()); in is_packable()
Dgenerated_message_reflection.cc223 if (field->is_repeated()) { in SpaceUsed()
343 if (field->is_repeated()) { in Swap()
465 } else if (!field->is_repeated()) { in ClearField()
651 if (field->is_repeated()) { in ListFields()
Dunknown_field_set_unittest.cc122 if (field->is_repeated()) { in TEST_F()
Ddescriptor.cc1503 if (fields[i]->is_repeated()) { in RetrieveOptions()
2977 if (proto.has_default_value() && result->is_repeated()) { in BuildFieldOrExtension()
3739 if (!field->is_repeated()) { in ValidateMapKey()
3775 if (key_field->is_repeated()) { in ValidateMapKey()
3959 } else if (field->is_repeated()) { in InterpretSingleOption()
Ddescriptor_unittest.cc600 EXPECT_FALSE(foo_->is_repeated()); in TEST_F()
604 EXPECT_FALSE(bar_->is_repeated()); in TEST_F()
608 EXPECT_TRUE (baz_->is_repeated()); in TEST_F()
Dtest_util.cc2834 if (!field->is_repeated()) continue; in RemoveLastRepeatedsViaReflection()
2847 if (!field->is_repeated()) continue; in SwapRepeatedsViaReflection()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_message.cc223 if (field->is_repeated()) { in GenerateFieldAccessorDeclarations()
260 if (field->is_repeated()) { in GenerateFieldAccessorDefinitions()
281 if (!field->is_repeated()) { in GenerateFieldAccessorDefinitions()
830 if (!field->is_repeated() && in GenerateSharedDestructorCode()
871 if (!field->is_repeated() && in GenerateStructors()
963 if (!field->is_repeated()) { in GenerateClear()
1015 if (field->is_repeated()) { in GenerateClear()
1120 if (field->is_repeated()) { in GenerateMergeFrom()
1131 if (!field->is_repeated()) { in GenerateMergeFrom()
1270 if (i > 0 || (field->is_repeated() && !field->options().packed())) { in GenerateMergeFromCodedStream()
[all …]
Dcpp_extension.cc64 if (descriptor_->is_repeated()) { in ExtensionGenerator()
174 vars["is_repeated"] = descriptor_->is_repeated() ? "true" : "false"; in GenerateRegistration()
175 vars["is_packed" ] = (descriptor_->is_repeated() && in GenerateRegistration()
Dcpp_field.cc94 if (field->is_repeated()) { in MakeGenerator()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_extension.cc113 if (descriptor_->is_repeated()) { in Generate()
138 vars["default"] = descriptor_->is_repeated() ? "" : DefaultValue(descriptor_); in GenerateInitializationCode()
169 if (descriptor_->is_repeated()) { in GenerateInitializationCode()
Djava_field.cc76 if (field->is_repeated()) { in MakeGenerator()
Djava_file.cc68 if (fields[i]->is_repeated()) { in UsesExtensions()
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_field.cc66 if (field->is_repeated()) { in MakeGenerator()
Djavamicro_file.cc66 if (fields[i]->is_repeated()) { in UsesExtensions()
/external/protobuf/python/google/protobuf/
Dreflection.py259 is_repeated = (field_descriptor.label == _FieldDescriptor.LABEL_REPEATED)
268 field_descriptor.number, is_repeated, is_packed)
270 field_descriptor.number, is_repeated, is_packed)
281 field_descriptor.number, is_repeated, is_packed,
287 if is_repeated and wire_format.IsTypePackable(field_descriptor.type):
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc155 if (field.is_repeated()) { in StringifyDefaultValue()