Home
last modified time | relevance | path

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

123

/external/protobuf/src/google/protobuf/
Dgenerated_message_reflection.h134 GOOGLE_DCHECK(!field->containing_oneof()); in GetFieldOffsetNonOneof()
140 if (field->containing_oneof()) { in GetFieldOffset()
143 field->containing_oneof()->index()); in GetFieldOffset()
151 if (field->containing_oneof()) { in IsFieldInlined()
154 field->containing_oneof()->index()); in IsFieldInlined()
Dgenerated_message_reflection.cc298 if (field->containing_oneof() && !HasOneofField(message, field)) { in SpaceUsedLong()
643 if (field->is_repeated() || field->containing_oneof()) { in Swap()
658 if (field->containing_oneof()) continue; in Swap()
705 if (field->containing_oneof()) { in SwapFields()
706 int oneof_index = field->containing_oneof()->index(); in SwapFields()
712 SwapOneofField(message1, message2, field->containing_oneof()); in SwapFields()
736 if (field->containing_oneof()) { in HasField()
796 if (field->containing_oneof()) { in ClearField()
1052 const OneofDescriptor* containing_oneof = field->containing_oneof(); in ListFields() local
1053 if (containing_oneof) { in ListFields()
[all …]
Ddynamic_message.cc366 if (field->containing_oneof()) { in SharedCtor()
481 if (field->containing_oneof()) { in ~DynamicMessage()
484 sizeof(uint32) * field->containing_oneof()->index()); in ~DynamicMessage()
488 field->containing_oneof()->index()]); in ~DynamicMessage()
737 if (!type->field(i)->containing_oneof()) { in GetPrototypeNoLock()
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_field.cc111 } else if (field->containing_oneof()) { in MakeGenerator()
156 UnderscoresToCamelCase(descriptor->containing_oneof()); in SetCommonOneofVariables()
158 UnderscoresToCapitalizedCamelCase(descriptor->containing_oneof()); in SetCommonOneofVariables()
160 SimpleItoa(descriptor->containing_oneof()->index()); in SetCommonOneofVariables()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_message.cc174 if (!field->is_repeated() && !field->containing_oneof()) { in EmitFieldNonDefaultCondition()
189 } else if (field->containing_oneof()) { in EmitFieldNonDefaultCondition()
245 field->containing_oneof() != NULL); in HasPrivateHasMethod()
635 } else if (!field->containing_oneof()) { in MessageGenerator()
711 if (field->containing_oneof() == NULL && !field->options().weak()) { in GenerateFieldAccessorDeclarations()
867 if (field->containing_oneof()) { in GenerateFieldClear()
914 } else if (field->containing_oneof()) { in GenerateFieldAccessorDefinitions()
916 format.Set("oneof_name", field->containing_oneof()->name()); in GenerateFieldAccessorDefinitions()
918 StrCat(field->containing_oneof()->index())); in GenerateFieldAccessorDefinitions()
1430 field->containing_oneof()) { in GenerateClassDefinition()
[all …]
Dcpp_field.cc108 const std::string prefix = descriptor->containing_oneof()->name() + "_."; in SetCommonOneofFieldVariables()
109 (*variables)["oneof_name"] = descriptor->containing_oneof()->name(); in SetCommonOneofFieldVariables()
170 } else if (field->containing_oneof()) { in MakeGenerator()
Dcpp_helpers.cc1129 field->containing_oneof() == nullptr && in IsImplicitWeakField()
1466 field->containing_oneof() == nullptr && ctype == FieldOptions::STRING) { in GenerateStrings()
1526 if (field->containing_oneof() != nullptr) { in GenerateLengthDelim()
1536 FieldName(field), field->containing_oneof()->name()); in GenerateLengthDelim()
1628 if (field->is_repeated() || field->containing_oneof()) { in GenerateFieldBody()
1650 if (field->is_repeated() || field->containing_oneof()) { in GenerateFieldBody()
Dcpp_string_field.cc481 if (SupportsArenas(descriptor_) || descriptor_->containing_oneof() != NULL) { in GenerateMergingCode()
527 if (SupportsArenas(descriptor_) || descriptor_->containing_oneof() != NULL) { in GenerateCopyConstructorCode()
/external/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_field.cc236 if (descriptor_->containing_oneof() != NULL) { in SetOneofIndexBase()
237 int index = descriptor_->containing_oneof()->index() + index_base; in SetOneofIndexBase()
288 if (descriptor_->containing_oneof() != NULL) { in WantsHasProperty()
300 if (descriptor_->containing_oneof() != NULL) { in RuntimeUsesHasBit()
Dobjectivec_message_field.cc76 if (descriptor_->containing_oneof() != NULL) { in WantsHasProperty()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_message_builder.cc313 if (!descriptor_->field(i)->containing_oneof()) { in GenerateCommonBuilderMethods()
333 if (!descriptor_->field(i)->containing_oneof()) { in GenerateCommonBuilderMethods()
540 if (!descriptor_->field(i)->containing_oneof()) { in GenerateCommonBuilderMethods()
661 field->containing_oneof() != NULL) { in GenerateIsInitialized()
662 const OneofDescriptor* oneof = field->containing_oneof(); in GenerateIsInitialized()
Djava_field.cc91 if (field->containing_oneof()) { in MakeImmutableGenerator()
148 if (field->containing_oneof()) { in MakeImmutableLiteGenerator()
269 StrCat(descriptor->containing_oneof()->index()); in SetCommonOneofVariables()
Djava_message.cc912 field->containing_oneof() != NULL) { in GenerateIsInitialized()
913 const OneofDescriptor* oneof = field->containing_oneof(); in GenerateIsInitialized()
990 field->containing_oneof() == NULL; in CheckHasBitsForEqualsAndHashCode()
1013 if (field->containing_oneof() == NULL) { in GenerateEqualsAndHashCode()
1097 if (field->containing_oneof() == NULL) { in GenerateEqualsAndHashCode()
1358 if (!descriptor_->field(i)->containing_oneof()) { in GenerateInitializers()
Djava_string_field_lite.cc333 context->GetOneofGeneratorInfo(descriptor->containing_oneof()); in ImmutableStringOneofFieldLiteGenerator()
420 WriteIntToUtf16CharSequence(descriptor_->containing_oneof()->index(), output); in GenerateFieldInfo()
Djava_message_field_lite.cc314 context->GetOneofGeneratorInfo(descriptor->containing_oneof()); in ImmutableMessageOneofFieldLiteGenerator()
396 WriteIntToUtf16CharSequence(descriptor_->containing_oneof()->index(), output); in GenerateFieldInfo()
/external/protobuf/python/google/protobuf/internal/
Dpython_message.py329 if field_descriptor.containing_oneof is not None:
450 if field.containing_oneof is not None
689 clear_when_set_to_default = is_proto3 and not field.containing_oneof
709 if field.containing_oneof:
837 not field.containing_oneof):
894 if self._oneofs.get(field.containing_oneof, None) is field:
895 del self._oneofs[field.containing_oneof]
1328 if field.containing_oneof:
1461 other_field = self._oneofs.setdefault(field.containing_oneof, field)
1464 self._oneofs[field.containing_oneof] = field
Dgenerator_test.py305 self.assertIs(desc.oneofs[0], field_desc.containing_oneof)
307 self.assertIsNone(field_desc.containing_oneof)
/external/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_helpers.cc493 if (descriptor->containing_oneof()) { in CreateFieldGenerator()
499 if (descriptor->containing_oneof()) { in CreateFieldGenerator()
510 if (descriptor->containing_oneof()) { in CreateFieldGenerator()
520 if (descriptor->containing_oneof()) { in CreateFieldGenerator()
Dcsharp_field_base.cc179 return UnderscoresToCamelCase(descriptor_->containing_oneof()->name(), true); in oneof_property_name()
183 return UnderscoresToCamelCase(descriptor_->containing_oneof()->name(), false); in oneof_name()
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upbc/
Dmessage_layout.cc78 if (field->containing_oneof()) { in FieldLayoutRank()
134 if (!field->containing_oneof()) { in PlaceNonOneofFields()
/external/avb/proto/crypto/keyspb/
Dkeyspb_pb2.py346 _SPECIFICATION.fields_by_name['ecdsa_params'].containing_oneof = _SPECIFICATION.oneofs_by_name['par…
349 _SPECIFICATION.fields_by_name['rsa_params'].containing_oneof = _SPECIFICATION.oneofs_by_name['param…
352 _SPECIFICATION.fields_by_name['ed25519_params'].containing_oneof = _SPECIFICATION.oneofs_by_name['p…
/external/protobuf/python/google/protobuf/
Djson_format.py249 field.containing_oneof):
516 if field.containing_oneof is not None:
517 oneof_name = field.containing_oneof.name
574 if field and field.containing_oneof is None:
Ddescriptor.py528 has_default_value=True, containing_oneof=None, json_name=None, argument
540 has_default_value=True, containing_oneof=None, json_name=None, argument
571 self.containing_oneof = containing_oneof
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/
Ddef.hpp77 OneofDefPtr containing_oneof() const;
429 inline OneofDefPtr FieldDefPtr::containing_oneof() const { in containing_oneof() function in upb::FieldDefPtr
/external/protobuf/src/google/protobuf/util/
Dtype_resolver_util.cc272 if (descriptor->containing_oneof() != NULL) { in ConvertFieldDescriptor()
273 field->set_oneof_index(descriptor->containing_oneof()->index() + 1); in ConvertFieldDescriptor()

123