Home
last modified time | relevance | path

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

123

/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/
Dgenerated_message_reflection.cc336 if (field->containing_oneof() && !HasOneofField(message, field)) { in SpaceUsed()
681 if (!field->containing_oneof()) { in Swap()
728 if (field->containing_oneof()) { in SwapFields()
729 int oneof_index = field->containing_oneof()->index(); in SwapFields()
735 SwapOneofField(message1, message2, field->containing_oneof()); in SwapFields()
756 if (field->containing_oneof()) { in HasField()
808 if (field->containing_oneof()) { in ClearField()
1047 if (field->containing_oneof()) { in ListFields()
1198 if (field->containing_oneof() && !HasOneofField(*message, field)) { in SetString()
1199 ClearOneof(message, field->containing_oneof()); in SetString()
[all …]
Ddynamic_message.cc350 if (field->containing_oneof()) { in SharedCtor()
441 if (field->containing_oneof()) { in ~DynamicMessage()
444 + sizeof(uint32) * field->containing_oneof()->index()); in ~DynamicMessage()
448 descriptor->field_count() + field->containing_oneof()->index()]); in ~DynamicMessage()
545 if (field->containing_oneof()) { in CrossLinkPrototypes()
717 if (!type->field(i)->containing_oneof()) { in GetPrototypeNoLock()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_field.cc102 const string prefix = descriptor->containing_oneof()->name() + "_."; in SetCommonOneofFieldVariables()
104 (*variables)["oneof_name"] = descriptor->containing_oneof()->name(); in SetCommonOneofFieldVariables()
156 } else if (field->containing_oneof()) { in MakeGenerator()
Dcpp_message.cc299 if (!field->is_repeated() && !field->containing_oneof()) { in EmitFieldNonDefaultCondition()
319 } else if (field->containing_oneof()) { in EmitFieldNonDefaultCondition()
371 field->containing_oneof() != NULL); in HasPrivateHasMethod()
581 if (field->containing_oneof()) { in GenerateDependentFieldAccessorDefinitions()
583 vars["oneof_name"] = field->containing_oneof()->name(); in GenerateDependentFieldAccessorDefinitions()
584 vars["oneof_index"] = SimpleItoa(field->containing_oneof()->index()); in GenerateDependentFieldAccessorDefinitions()
716 if (field->containing_oneof()) { in GenerateFieldClear()
775 } else if (field->containing_oneof()) { in GenerateFieldAccessorDefinitions()
777 vars["oneof_name"] = field->containing_oneof()->name(); in GenerateFieldAccessorDefinitions()
778 vars["oneof_index"] = SimpleItoa(field->containing_oneof()->index()); in GenerateFieldAccessorDefinitions()
[all …]
Dcpp_helpers.cc223 if (field->containing_oneof() != NULL && in IsFieldDependent()
239 if (field->containing_oneof() != NULL) { in IsFieldDependent()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_message_builder.cc310 if (!descriptor_->field(i)->containing_oneof()) { in GenerateCommonBuilderMethods()
329 if (!descriptor_->field(i)->containing_oneof()) { in GenerateCommonBuilderMethods()
465 if (!descriptor_->field(i)->containing_oneof()) { in GenerateCommonBuilderMethods()
595 field->containing_oneof() != NULL) { in GenerateIsInitialized()
596 const OneofDescriptor* oneof = field->containing_oneof(); in GenerateIsInitialized()
Djava_field.cc99 if (field->containing_oneof()) { in MakeImmutableGenerator()
172 if (field->containing_oneof()) { in MakeImmutableLiteGenerator()
308 SimpleItoa(descriptor->containing_oneof()->index()); in SetCommonOneofVariables()
Djava_message_lite.cc720 field->containing_oneof() != NULL) { in GenerateDynamicMethodIsInitialized()
721 const OneofDescriptor* oneof = field->containing_oneof(); in GenerateDynamicMethodIsInitialized()
827 if (!descriptor_->field(i)->containing_oneof()) { in GenerateDynamicMethodVisit()
1035 field->containing_oneof() == NULL; in CheckHasBitsForEqualsAndHashCode()
1084 if (!descriptor_->field(i)->containing_oneof()) { in GenerateInitializers()
Djava_message.cc890 field->containing_oneof() != NULL) { in GenerateIsInitialized()
891 const OneofDescriptor* oneof = field->containing_oneof(); in GenerateIsInitialized()
970 field->containing_oneof() == NULL; in CheckHasBitsForEqualsAndHashCode()
994 if (field->containing_oneof() == NULL) { in GenerateEqualsAndHashCode()
1084 if (field->containing_oneof() == NULL) { in GenerateEqualsAndHashCode()
1370 if (!descriptor_->field(i)->containing_oneof()) { in GenerateInitializers()
Djava_message_field_lite.cc136 descriptor_->containing_oneof() == NULL) { in GenerateInterfaceMembers()
381 context->GetOneofGeneratorInfo(descriptor->containing_oneof()); in ImmutableMessageOneofFieldLiteGenerator()
/external/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_field.cc237 if (descriptor_->containing_oneof() != NULL) { in SetOneofIndexBase()
238 int index = descriptor_->containing_oneof()->index() + index_base; in SetOneofIndexBase()
289 if (descriptor_->containing_oneof() != NULL) { in WantsHasProperty()
301 if (descriptor_->containing_oneof() != NULL) { in RuntimeUsesHasBit()
Dobjectivec_message_field.cc77 if (descriptor_->containing_oneof() != NULL) { in WantsHasProperty()
Dobjectivec_message.cc332 if (field->containing_oneof() != NULL) { in GenerateMessageHeader()
333 const int oneof_index = field->containing_oneof()->index(); in GenerateMessageHeader()
/external/protobuf/python/google/protobuf/internal/
Dpython_message.py330 if field_descriptor.containing_oneof is not None:
440 if field.containing_oneof is not None
668 clear_when_set_to_default = is_proto3 and not field.containing_oneof
684 if field.containing_oneof:
822 not field.containing_oneof):
879 if self._oneofs.get(field.containing_oneof, None) is field:
880 del self._oneofs[field.containing_oneof]
1251 if field.containing_oneof:
1355 other_field = self._oneofs.setdefault(field.containing_oneof, field)
1358 self._oneofs[field.containing_oneof] = field
Dgenerator_test.py304 self.assertIs(desc.oneofs[0], field_desc.containing_oneof)
306 self.assertIsNone(field_desc.containing_oneof)
/external/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_helpers.cc467 if (descriptor->containing_oneof()) { in CreateFieldGenerator()
473 if (descriptor->containing_oneof()) { in CreateFieldGenerator()
484 if (descriptor->containing_oneof()) { in CreateFieldGenerator()
494 if (descriptor->containing_oneof()) { in CreateFieldGenerator()
Dcsharp_field_base.cc136 return UnderscoresToCamelCase(descriptor_->containing_oneof()->name(), true); in oneof_property_name()
140 return UnderscoresToCamelCase(descriptor_->containing_oneof()->name(), false); in oneof_name()
Dcsharp_message.cc265 if (!descriptor_->field(i)->containing_oneof()) { in GenerateCloningCode()
411 if (!descriptor_->field(i)->containing_oneof()) { in GenerateMergingMethods()
/external/protobuf/python/google/protobuf/
Djson_format.py154 field.containing_oneof):
349 if field.containing_oneof is not None:
350 oneof_name = field.containing_oneof.name
395 if field and field.containing_oneof is None:
Ddescriptor.py500 has_default_value=True, containing_oneof=None): argument
510 has_default_value=True, containing_oneof=None): argument
534 self.containing_oneof = containing_oneof
/external/protobuf/src/google/protobuf/util/
Dtype_resolver_util.cc171 if (descriptor->containing_oneof() != NULL) { in ConvertFieldDescriptor()
172 field->set_oneof_index(descriptor->containing_oneof()->index() + 1); in ConvertFieldDescriptor()
/external/protobuf/src/google/protobuf/compiler/js/
Djs_generator.cc997 if (desc->field(i)->containing_oneof()) { in HasOneofFields()
1046 JSOneofIndex(field->containing_oneof()) + "]"; in JSOneofArray()
1199 (field->containing_oneof() != NULL) || in HasFieldPresence()
2162 "oneoftag", (field->containing_oneof() ? "Oneof" : ""), in GenerateClassField()
2171 "oneofgroup", (field->containing_oneof() ? in GenerateClassField()
2310 "oneoftag", (field->containing_oneof() ? "Oneof" : ""), in GenerateClassField()
2321 (field->containing_oneof() ? (", " + JSOneofArray(options, field)) in GenerateClassField()
2340 "oneoftag", (field->containing_oneof() ? "Oneof" : ""), in GenerateClassField()
2341 "oneofgroup", (field->containing_oneof() ? in GenerateClassField()
/external/tensorflow/tensorflow/tools/proto_text/
Dgen_proto_text_functions_lib.cc336 const auto* oneof = field.containing_oneof(); in AppendFieldAppend()
496 } else if (field->containing_oneof() != nullptr) { in AppendParseMessageFunction()
500 const string oneof_name = field->containing_oneof()->name(); in AppendParseMessageFunction()
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor.cc845 const OneofDescriptor* containing_oneof = in GetContainingOneof() local
846 _GetDescriptor(self)->containing_oneof(); in GetContainingOneof()
847 if (containing_oneof) { in GetContainingOneof()
848 return PyOneofDescriptor_FromDescriptor(containing_oneof); in GetContainingOneof()

123