Searched refs:is_optional (Results 1 – 9 of 9) sorted by relevance
119 } else if (params.optional_field_accessors() && field->is_optional() in MakeGenerator()
85 if (descriptor->is_optional()) field_flags.push_back("GPBFieldOptional"); in SetCommonFieldVariables()
545 bool is_optional() const; // shorthand for label() == LABEL_OPTIONAL1805 inline bool FieldDescriptor::is_optional() const { in is_optional() function
841 EXPECT_FALSE(foo_->is_optional()); in TEST_F()845 EXPECT_TRUE (bar_->is_optional()); in TEST_F()849 EXPECT_FALSE(baz_->is_optional()); in TEST_F()
1418 && field->is_optional() in PrintFieldName()
1864 extension->is_optional() && in FindKnownExtensionByName()
5307 if (!field->is_optional() || in ValidateFieldOptions()6102 extension->is_optional() && in FindExtension()
3286 if (!field->is_optional() || in SetAllocatedOptionalMessageFieldsToNullViaReflection()3306 if (!field->is_optional() || in SetAllocatedOptionalMessageFieldsToMessageViaReflection()
944 if (field->is_optional() && is_primitive && in JSFieldTypeAnnotation()1151 (field->is_optional() ? "optional" : "required"); in FieldDefinition()2047 } else if (field->is_optional() && !field->has_default_value()) { in GenerateClassFieldToObject()