Searched refs:is_required (Results 1 – 14 of 14) sorted by relevance
147 if (descriptor->field(i)->is_required()) { in IsInitialized()233 if (descriptor->field(i)->is_required()) { in FindInitializationErrors()
544 bool is_required() const; // shorthand for label() == LABEL_REQUIRED1794 inline bool FieldDescriptor::is_required() const { in is_required() function
841 EXPECT_TRUE (foo_->is_required()); in TEST_F()845 EXPECT_FALSE(bar_->is_required()); in TEST_F()849 EXPECT_FALSE(baz_->is_required()); in TEST_F()
5202 if (field->is_required()) { in ValidateProto3Field()
119 if (field->is_required()) { in HasRequiredFields()415 if (field->is_required()) { in GenerateIsInitialized()
179 if (descriptor_->is_required() && !params_.generate_has()) { in GenerateSerializationCode()199 if (descriptor_->is_required() && !params_.generate_has()) { in GenerateSerializedSizeCode()
368 if (descriptor_->is_required() && !params_.generate_has()) { in GenerateSerializationCode()395 if (descriptor_->is_required() && !params_.generate_has()) { in GenerateSerializedSizeCode()
136 if (field->is_required()) { in HasRequiredFields()409 if (descriptor->field(i)->is_required()) { in MessageGenerator()3427 if (desc->field(i)->is_required()) { in RequiredFieldsBitMask()3492 if (field->is_required()) { in GenerateByteSize()3530 if (!field->is_required()) continue; in GenerateByteSize()3543 if (!field->is_required()) continue; in GenerateByteSize()3564 if (!field->is_required() && !field->is_repeated() && in GenerateByteSize()3574 if (!field->is_required() && !field->is_repeated() && in GenerateByteSize()3735 if (field->is_required()) { in GenerateIsInitialized()
84 if (descriptor->is_required()) field_flags.push_back("GPBFieldRequired"); in SetCommonFieldVariables()
568 if (field->is_required()) { in GenerateIsInitialized()
726 if (field->is_required()) { in HasRequiredFields()
687 if (field->is_required()) { in GenerateDynamicMethodIsInitialized()
861 if (field->is_required()) { in GenerateIsInitialized()
927 } else if (field->is_required() && !is_primitive && !force_optional) { in JSFieldTypeAnnotation()