Home
last modified time | relevance | path

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

123

/third_party/protobuf/python/google/protobuf/internal/
Dencoder.py130 def SpecificSizer(field_number, is_repeated, is_packed): argument
140 elif is_repeated:
159 def SpecificSizer(field_number, is_repeated, is_packed): argument
169 elif is_repeated:
188 def SpecificSizer(field_number, is_repeated, is_packed): argument
196 elif is_repeated:
230 def StringSizer(field_number, is_repeated, is_packed): argument
237 if is_repeated:
252 def BytesSizer(field_number, is_repeated, is_packed): argument
259 if is_repeated:
[all …]
Ddecoder.py212 def SpecificDecoder(field_number, is_repeated, is_packed, key, new_default, argument
232 elif is_repeated:
390 def EnumDecoder(field_number, is_repeated, is_packed, key, new_default, argument
446 elif is_repeated:
561 def StringDecoder(field_number, is_repeated, is_packed, key, new_default, argument
590 if is_repeated:
624 def BytesDecoder(field_number, is_repeated, is_packed, key, new_default, argument
631 if is_repeated:
665 def GroupDecoder(field_number, is_repeated, is_packed, key, new_default): argument
673 if is_repeated:
[all …]
Dpython_message.py295 is_repeated = (field_descriptor.label == _FieldDescriptor.LABEL_REPEATED)
296 is_packable = (is_repeated and
320 field_descriptor.number, is_repeated, is_packed)
322 field_descriptor.number, is_repeated, is_packed)
340 elif (is_proto3 and not is_repeated and
353 field_descriptor.number, is_repeated, is_packed,
358 field_descriptor.number, is_repeated, is_packed,
362 field_descriptor.number, is_repeated, is_packed,
372 if is_repeated and wire_format.IsTypePackable(field_descriptor.type):
/third_party/protobuf/src/google/protobuf/util/
Dtype_resolver_util.cc150 if (field->is_repeated()) { in ConvertOptionsInternal()
170 field->is_repeated() in ConvertOptionField()
176 field->is_repeated() in ConvertOptionField()
182 field->is_repeated() in ConvertOptionField()
188 field->is_repeated() in ConvertOptionField()
194 field->is_repeated() in ConvertOptionField()
200 field->is_repeated() in ConvertOptionField()
206 field->is_repeated() in ConvertOptionField()
212 field->is_repeated() in ConvertOptionField()
218 field->is_repeated() in ConvertOptionField()
[all …]
Dmessage_differencer.cc145 if (field->is_repeated()) { in IsMatchInternal()
319 GOOGLE_CHECK(field->is_repeated()) in CheckRepeatedFieldComparisons()
393 GOOGLE_CHECK(field->is_repeated()) in TreatAsMapWithMultipleFieldPathsAsKey()
411 GOOGLE_CHECK(!parent_field->is_repeated()) in TreatAsMapWithMultipleFieldPathsAsKey()
429 GOOGLE_CHECK(field->is_repeated()) in TreatAsMapUsingKeyComparator()
751 int count = field1->is_repeated() in CompareWithFieldsInternal()
758 specific_field.index = field1->is_repeated() ? i : -1; in CompareWithFieldsInternal()
792 int count = field2->is_repeated() in CompareWithFieldsInternal()
799 specific_field.index = field2->is_repeated() ? i : -1; in CompareWithFieldsInternal()
838 if (field1->is_repeated()) { in CompareWithFieldsInternal()
[all …]
Dfield_comparator.cc67 if (field->is_repeated()) { \ in Compare()
91 if (field->is_repeated()) { in Compare()
/third_party/protobuf/src/google/protobuf/
Dextension_set_inl.h89 if (extension.is_repeated) { \ in ParseFieldWithExtensionInfo()
110 if (extension.is_repeated) { \ in ParseFieldWithExtensionInfo()
126 if (extension.is_repeated) { \ in ParseFieldWithExtensionInfo()
152 } else if (extension.is_repeated) { in ParseFieldWithExtensionInfo()
165 extension.is_repeated in ParseFieldWithExtensionInfo()
177 extension.is_repeated in ParseFieldWithExtensionInfo()
190 extension.is_repeated in ParseFieldWithExtensionInfo()
227 extension.is_repeated in ParseMessageSetItemTmpl()
Dextension_set.cc139 bool is_repeated, bool is_packed) { in RegisterExtension() argument
143 ExtensionInfo info(type, is_repeated, is_packed); in RegisterExtension()
162 bool is_repeated, bool is_packed, in RegisterEnumExtension() argument
165 ExtensionInfo info(type, is_repeated, is_packed); in RegisterEnumExtension()
174 bool is_repeated, bool is_packed, in RegisterMessageExtension() argument
178 ExtensionInfo info(type, is_repeated, is_packed); in RegisterMessageExtension()
239 GOOGLE_DCHECK(!ext->is_repeated); in Has()
286 GOOGLE_DCHECK_EQ((EXTENSION).is_repeated ? REPEATED_FIELD : OPTIONAL_FIELD, LABEL); \
313 extension->is_repeated = false; \
345 extension->is_repeated = true; \
[all …]
Dwire_format.cc402 } else if (field->is_repeated() || in ParseAndMergeMessageSetField()
529 if (field->is_repeated()) { \ in ParseAndMergeField()
560 if (field->is_repeated()) { in ParseAndMergeField()
583 if (field->is_repeated()) { in ParseAndMergeField()
594 if (field->is_repeated()) { in ParseAndMergeField()
604 if (field->is_repeated()) { in ParseAndMergeField()
620 if (field->is_repeated()) { in ParseAndMergeField()
688 field->is_repeated() in _InternalParse()
903 if (field->is_repeated()) { \ in _InternalParseAndMergeField()
920 if (field->is_repeated()) { in _InternalParseAndMergeField()
[all …]
Dextension_set_heavy.cc107 if (ext.is_repeated) { in AppendToList()
144 GOOGLE_DCHECK_EQ((EXTENSION).is_repeated ? FieldDescriptor::LABEL_REPEATED \
173 extension->is_repeated = false; in MutableMessage()
250 extension->is_repeated = true; in MaybeNewRepeatedExtension()
302 output->is_repeated = extension->is_repeated(); in Find()
421 if (is_repeated) { in SpaceUsedExcludingSelfLong()
Dreflection_ops.cc92 if (field->is_repeated()) { in Merge()
229 } else if (field->is_repeated()) { in IsInitialized()
299 if (field->is_repeated()) { in IsInitialized()
352 } else if (field->is_repeated()) { in DiscardUnknownFields()
409 if (field->is_repeated()) { in FindInitializationErrors()
Ddynamic_message.cc399 if (!field->is_repeated()) { \ in SharedCtor()
416 if (!field->is_repeated()) { in SharedCtor()
427 if (!field->is_repeated()) { in SharedCtor()
447 if (!field->is_repeated()) { in SharedCtor()
536 if (field->is_repeated()) { in ~DynamicMessage()
611 !field->is_repeated()) { in CrossLinkPrototypes()
Dtext_format.cc146 if (field->is_repeated() && index == -1) { in CheckFieldIndex()
149 } else if (!field->is_repeated() && index != -1) { in CheckFieldIndex()
412 if ((!any_type_url_field->is_repeated() && in ConsumeField()
414 (!any_value_field->is_repeated() && in ConsumeField()
525 if (!field->is_repeated() && reflection->HasField(*message, field)) { in ConsumeField()
567 if (field->is_repeated() && TryConsume("[")) { in ConsumeField()
657 if (field->is_repeated()) { in ConsumeFieldMessage()
700 if (field->is_repeated()) { \ in ConsumeFieldValue()
2234 if (use_short_repeated_primitives_ && field->is_repeated() && in PrintField()
2243 if (field->is_repeated()) { in PrintField()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_context.cc63 if (field1->is_repeated()) { in IsConflicting()
64 if (field2->is_repeated()) { in IsConflicting()
89 if (field2->is_repeated()) { in IsConflicting()
Djava_extension.cc75 vars["default"] = descriptor->is_repeated() in InitTemplateVars()
106 vars["type"] = descriptor->is_repeated() in InitTemplateVars()
Djava_field.cc69 if (field->is_repeated()) { in MakeImmutableGenerator()
126 if (field->is_repeated()) { in MakeImmutableLiteGenerator()
Djava_extension_lite.cc66 if (descriptor_->is_repeated()) { in Generate()
/third_party/protobuf/src/google/protobuf/compiler/js/
Djs_generator.cc494 } else if (!drop_list && field->is_repeated()) { in JSIdent()
824 if (field->is_repeated()) { in JSFieldDefault()
988 return UseBrokenPresenceSemantics(options, field) && !field->is_repeated() && in ReturnsNullWhenUnset()
1050 if (!force_singular && field->is_repeated() && in JSFieldTypeAnnotation()
1104 } else if (is_writer && field->is_repeated()) { in JSBinaryReadWriteMethodName()
1165 if (desc->field(i)->is_repeated() && !desc->field(i)->is_map()) { in HasRepeatedFields()
1203 if (desc->field(i)->is_repeated() && !desc->field(i)->is_map()) { in RepeatedFieldNumberList()
1306 field->is_repeated() ? "repeated" in FieldDefinition()
2299 const std::string cardinality = field->is_repeated() ? "Repeated" : ""; in GenerateFieldValueExpression()
2319 if (is_float_or_double && !field->is_repeated() && !use_default) { in GenerateFieldValueExpression()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_extension.cc92 if (descriptor_->is_repeated()) options.push_back("GPBExtensionRepeated"); in GenerateStaticVariablesInitialization()
108 if (descriptor_->is_repeated()) { in GenerateStaticVariablesInitialization()
Dobjectivec_field.cc82 if (descriptor->is_repeated()) field_flags.push_back("GPBFieldRepeated"); in SetCommonFieldVariables()
98 (!descriptor->is_repeated() && !descriptor->has_presence()); in SetCommonFieldVariables()
124 if (field->is_repeated()) { in Make()
Dobjectivec_enum_field.cc53 if (!descriptor->is_repeated() && in SetEnumVariables()
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_helpers.cc307 if (field->is_repeated() || field->is_extension()) return false; in CanInitializeByZeroing()
473 if (field->is_repeated()) return 8; in EstimateAlignmentSize()
1472 if (field->file()->options().cc_enable_arenas() && !field->is_repeated() && in GenerateStrings()
1497 field->is_repeated() && !field->is_packable() ? "add" : "mutable", in GenerateStrings()
1603 if (!field->is_repeated()) { in GenerateLengthDelim()
1623 field->is_repeated() ? "add" : "mutable", FieldName(field)); in GenerateLengthDelim()
1645 descriptor->is_repeated() && in ShouldRepeat()
1656 std::string prefix = field->is_repeated() ? "add" : "set"; in GenerateFieldBody()
1687 if (field->is_repeated() || field->real_containing_oneof()) { in GenerateFieldBody()
1688 std::string prefix = field->is_repeated() ? "add" : "set"; in GenerateFieldBody()
[all …]
Dcpp_message.cc144 if (field->is_repeated() || field->is_extension()) return false; in IsPOD()
172 ret = ret || (!field->is_repeated() && !IsLazy(field, options) && in CanBeManipulatedAsRawBytes()
214 if (!field->is_repeated() && !field->containing_oneof()) { in EmitFieldNonDefaultCondition()
719 if (field->is_repeated()) { in GenerateFieldAccessorDeclarations()
966 if (field->is_repeated()) { in GenerateFieldAccessorDefinitions()
1486 if (!field->is_repeated() && !field->options().weak() && in GenerateClassDefinition()
1762 } else if (field->is_repeated()) { in CalcFieldNum()
1971 if (!field->is_repeated() && !IsLazy(field, options_) && in GenerateDefaultInstanceInitializer()
2258 field->is_repeated() ? internal::kRepeatedMask : 0); in GenerateParseOffsets()
2648 bool has_arena_constructor = field->is_repeated(); in GenerateStructors()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_helpers.cc510 if (descriptor->is_repeated()) { in CreateFieldGenerator()
532 if (descriptor->is_repeated()) { in CreateFieldGenerator()
542 if (descriptor->is_repeated()) { in CreateFieldGenerator()
555 if (descriptor->is_repeated()) { in IsNullable()
/third_party/protobuf/benchmarks/util/
Ddata_proto2_to_proto3_util.h29 if (field->is_repeated()) { in StripMessage()

123