Lines Matching refs:extension
1550 // more than a couple extension ranges.
1663 // extension we're looking for. Some DescriptorDatabases return false
1757 extension(i)->CopyTo(proto->add_extension());
1775 extension(i)->CopyJsonNameTo(proto->mutable_extension(i));
1807 extension(i)->CopyTo(proto->add_extension());
1837 extension(i)->CopyJsonNameTo(proto->mutable_extension(i));
2160 if (extension(i)->type() == FieldDescriptor::TYPE_GROUP) {
2161 groups.insert(extension(i)->message_type());
2180 if (extension(i)->containing_type() != containing_type) {
2182 containing_type = extension(i)->containing_type();
2186 extension(i)->DebugString(1, FieldDescriptor::PRINT_LABEL, &contents,
2240 if (extension(i)->type() == FieldDescriptor::TYPE_GROUP) {
2241 groups.insert(extension(i)->message_type());
2275 if (extension(i)->containing_type() != containing_type) {
2277 containing_type = extension(i)->containing_type();
2281 extension(i)->DebugString(
2741 // Represents an options message to interpret. Extension names in the option
3998 BUILD_ARRAY(proto, result, extension , BuildExtension, NULL);
4014 // extension options known, so all interpretations should now succeed.
4070 // Build oneofs first so that fields and extension ranges can refer to them.
4076 BUILD_ARRAY(proto, result, extension , BuildExtension , result);
4135 "Extension range $0 to $1 includes field \"$2\" ($3).",
4158 // Check that extension ranges don't overlap and don't include
4167 strings::Substitute("Extension range $0 to $1 overlaps with "
4178 strings::Substitute("Extension range $0 to $1 overlaps with "
4239 // An extension cannot have a required field (b/13365836).
4394 // not an extension. Since extension numbers are validated with the
4395 // extendee's valid set of extension numbers, and those are in turn
4397 // extension fields.
4400 // on extension numbers.
4418 "FieldDescriptorProto.extendee not set for extension field.");
4436 "FieldDescriptorProto.extendee set for non-extension field.");
4480 "Extension numbers must be positive integers.");
4483 // Checking of the upper bound of the extension range is deferred until after
4485 // have extensions beyond FieldDescriptor::kMaxNumber, since the extension
4491 "Extension range end number must be greater than start number.");
4709 CrossLinkField(&file->extensions_[i], proto.extension(i));
4740 CrossLinkField(&message->extensions_[i], proto.extension(i));
4830 "extension number.",
4972 strings::Substitute("Extension number $0 has already been used "
4973 "in \"$1\" by extension \"$2\".",
4992 "Extension number $0 has already been used in \"$1\" by extension "
4998 // Conflicting extension numbers should be an error. However, before
5098 VALIDATE_OPTIONS_FROM_ARRAY(file, extension, Field);
5122 ValidateProto3Field(file->extensions_ + i, proto.extension(i));
5160 ValidateProto3Field(message->extensions_ +i, proto.extension(i));
5165 "Extension ranges are not allowed in proto3.");
5245 VALIDATE_OPTIONS_FROM_ARRAY(message, extension, Field);
5256 strings::Substitute("Extension numbers cannot be greater than $0.",
5382 if (// Must not contain extensions, extension range or nested message or
5605 // get the version that knows about any extension options declared in the
5644 // Search for the extension's descriptor as an extension in the builder's
5684 // The field is an extension of a placeholder type, so we can't
5685 // reliably verify whether it is a valid extension to use here (e.g.
5686 // we don't know if it is an extension of the correct *Options message,
5696 "\" is not a field or extension of message \"" +
5718 // about its extension fields, so we may not be able to set the fields
5720 // message, so reading that message back in once the extension fields are
6029 // Sign-extension is not a problem, since we cast directly from int32 to
6075 // the type name, rather than the extension identifier. If the symbol
6078 // extension, if one exists.
6080 const FieldDescriptor* extension = foreign_type->extension(i);
6081 if (extension->containing_type() == descriptor &&
6082 extension->type() == FieldDescriptor::TYPE_MESSAGE &&
6083 extension->is_optional() &&
6084 extension->message_type() == foreign_type) {
6086 return extension;
6260 (*it)->extension(i)->containing_type()->full_name())