Automated rollback of commit 12a2fa5e1e.

PiperOrigin-RevId: 533561966
pull/12861/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent 284a057ac1
commit 5436c1923c
  1. 12
      src/google/protobuf/compiler/cpp/field_generators/cord_field.cc
  2. 6
      src/google/protobuf/compiler/cpp/field_generators/enum_field.cc
  3. 8
      src/google/protobuf/compiler/cpp/field_generators/map_field.cc
  4. 80
      src/google/protobuf/compiler/cpp/field_generators/message_field.cc
  5. 12
      src/google/protobuf/compiler/cpp/field_generators/primitive_field.cc
  6. 38
      src/google/protobuf/compiler/cpp/field_generators/string_field.cc
  7. 6
      src/google/protobuf/compiler/cpp/message.cc
  8. 168
      src/google/protobuf/compiler/plugin.pb.h
  9. 1346
      src/google/protobuf/descriptor.pb.h

@ -144,10 +144,8 @@ void CordFieldGenerator::GeneratePrivateMembers(io::Printer* printer) const {
void CordFieldGenerator::GenerateAccessorDeclarations(
io::Printer* printer) const {
Formatter format(printer, variables_);
format(
"$deprecated_attr$const ::absl::Cord& ${1$$name$$}$() const "
"ABSL_ATTRIBUTE_LIFETIME_BOUND;\n",
descriptor_);
format("$deprecated_attr$const ::absl::Cord& ${1$$name$$}$() const;\n",
descriptor_);
format(
"$deprecated_attr$void ${1$set_$name$$}$(const ::absl::Cord& value);\n"
"$deprecated_attr$void ${1$set_$name$$}$(::absl::string_view value);\n",
@ -168,8 +166,7 @@ void CordFieldGenerator::GenerateInlineAccessorDefinitions(
"inline const ::absl::Cord& $classname$::_internal_$name$() const {\n"
" return $field$;\n"
"}\n"
"inline const ::absl::Cord& $classname$::$name$() const "
"ABSL_ATTRIBUTE_LIFETIME_BOUND {\n"
"inline const ::absl::Cord& $classname$::$name$() const {\n"
"$annotate_get$"
" // @@protoc_insertion_point(field_get:$full_name$)\n"
" return _internal_$name$();\n"
@ -329,8 +326,7 @@ void CordOneofFieldGenerator::GenerateInlineAccessorDefinitions(
" }\n"
" return $default_variable$;\n"
"}\n"
"inline const ::absl::Cord& $classname$::$name$() const "
"ABSL_ATTRIBUTE_LIFETIME_BOUND {\n"
"inline const ::absl::Cord& $classname$::$name$() const {\n"
"$annotate_get$"
" // @@protoc_insertion_point(field_get:$full_name$)\n"
" return _internal_$name$();\n"

@ -377,14 +377,12 @@ void RepeatedEnum::GenerateInlineAccessorDefinitions(io::Printer* p) const {
$annotate_add$
// @@protoc_insertion_point(field_add:$pkg.Msg.field$)
}
inline const $pb$::RepeatedField<int>& $Msg$::$name$() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const $pb$::RepeatedField<int>& $Msg$::$name$() const {
$annotate_list$;
// @@protoc_insertion_point(field_list:$pkg.Msg.field$)
return _internal_$name$();
}
inline $pb$::RepeatedField<int>* $Msg$::mutable_$name$()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline $pb$::RepeatedField<int>* $Msg$::mutable_$name$() {
$annotate_mutable_list$;
// @@protoc_insertion_point(field_mutable_list:$pkg.Msg.field$)
return _internal_mutable_$name$();

@ -204,8 +204,8 @@ void Map::GenerateAccessorDeclarations(io::Printer* p) const {
auto v2 = p->WithVars(AnnotatedAccessors(field_, {"mutable_"},
io::AnnotationCollector::kAlias));
p->Emit(R"cc(
$DEPRECATED$ const $Map$& $name$() const ABSL_ATTRIBUTE_LIFETIME_BOUND;
$DEPRECATED$ $Map$* $mutable_name$() ABSL_ATTRIBUTE_LIFETIME_BOUND;
$DEPRECATED$ const $Map$& $name$() const;
$DEPRECATED$ $Map$* $mutable_name$();
private:
const $Map$& $_internal_name$() const;
@ -220,7 +220,7 @@ void Map::GenerateInlineAccessorDefinitions(io::Printer* p) const {
inline const $Map$& $Msg$::_internal_$name$() const {
return $field_$.GetMap();
}
inline const $Map$& $Msg$::$name$() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const $Map$& $Msg$::$name$() const {
$annotate_get$;
// @@protoc_insertion_point(field_map:$pkg.Msg.field$)
return _internal_$name$();
@ -229,7 +229,7 @@ void Map::GenerateInlineAccessorDefinitions(io::Printer* p) const {
$PrepareSplitMessageForWrite$;
return $field_$.MutableMap();
}
inline $Map$* $Msg$::mutable_$name$() ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline $Map$* $Msg$::mutable_$name$() {
$annotate_mutable$;
// @@protoc_insertion_point(field_mutable_map:$pkg.Msg.field$)
return _internal_mutable_$name$();

@ -166,9 +166,9 @@ void SingularMessage::GenerateAccessorDeclarations(io::Printer* p) const {
AnnotatedAccessors(field_, {"mutable_"}, AnnotationCollector::kAlias));
p->Emit(R"cc(
$DEPRECATED$ const $Submsg$& $name$() const ABSL_ATTRIBUTE_LIFETIME_BOUND;
$DEPRECATED$ const $Submsg$& $name$() const;
$DEPRECATED$ PROTOBUF_NODISCARD $Submsg$* $release_name$();
$DEPRECATED$ $Submsg$* $mutable_name$() ABSL_ATTRIBUTE_LIFETIME_BOUND;
$DEPRECATED$ $Submsg$* $mutable_name$();
$DEPRECATED$ void $set_allocated_name$($Submsg$* value);
$DEPRECATED$ void $unsafe_arena_set_allocated_name$($Submsg$* value);
$DEPRECATED$ $Submsg$* $unsafe_arena_release_name$();
@ -205,7 +205,7 @@ void SingularMessage::GenerateInlineAccessorDefinitions(io::Printer* p) const {
const $Submsg$* p = $cast_field_$;
return p != nullptr ? *p : reinterpret_cast<const $Submsg$&>($kDefault$);
}
inline const $Submsg$& $Msg$::$name$() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const $Submsg$& $Msg$::$name$() const {
$annotate_get$;
// @@protoc_insertion_point(field_get:$pkg.Msg.field$)
return _internal_$name$();
@ -263,7 +263,7 @@ void SingularMessage::GenerateInlineAccessorDefinitions(io::Printer* p) const {
}
return $cast_field_$;
}
inline $Submsg$* $Msg$::mutable_$name$() ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline $Submsg$* $Msg$::mutable_$name$() {
//~ TODO(b/122856539): add tests to make sure all write accessors are
//~ able to prepare split message allocation.
$PrepareSplitMessageForWrite$;
@ -605,8 +605,7 @@ void OneofMessage::GenerateInlineAccessorDefinitions(io::Printer* p) const {
" ? *$cast_field_$\n"
" : reinterpret_cast<$Submsg$&>($kDefault$);\n"
"}\n"
"inline const $Submsg$& $Msg$::$name$() const "
"ABSL_ATTRIBUTE_LIFETIME_BOUND{\n"
"inline const $Submsg$& $Msg$::$name$() const {\n"
"$annotate_get$"
" // @@protoc_insertion_point(field_get:$pkg.Msg.field$)\n"
" return _internal_$name$();\n"
@ -665,8 +664,7 @@ void OneofMessage::GenerateInlineAccessorDefinitions(io::Printer* p) const {
" }\n"
" return $cast_field_$;\n"
"}\n"
"inline $Submsg$* $Msg$::mutable_$name$() "
"ABSL_ATTRIBUTE_LIFETIME_BOUND{\n"
"inline $Submsg$* $Msg$::mutable_$name$() {\n"
" $Submsg$* _msg = _internal_mutable_$name$();\n"
"$annotate_mutable$"
" // @@protoc_insertion_point(field_mutable:$pkg.Msg.field$)\n"
@ -750,13 +748,11 @@ void RepeatedMessage::GeneratePrivateMembers(io::Printer* p) const {
void RepeatedMessage::GenerateAccessorDeclarations(io::Printer* p) const {
Formatter format(p);
format(
"$DEPRECATED$ $Submsg$* ${1$mutable_$name$$}$(int index) "
"ABSL_ATTRIBUTE_LIFETIME_BOUND;\n",
std::make_tuple(field_, GeneratedCodeInfo::Annotation::ALIAS));
format("$DEPRECATED$ $Submsg$* ${1$mutable_$name$$}$(int index);\n",
std::make_tuple(field_, GeneratedCodeInfo::Annotation::ALIAS));
format(
"$DEPRECATED$ $pb$::RepeatedPtrField< $Submsg$ >*\n"
" ${1$mutable_$name$$}$() ABSL_ATTRIBUTE_LIFETIME_BOUND;\n",
" ${1$mutable_$name$$}$();\n",
std::make_tuple(field_, GeneratedCodeInfo::Annotation::ALIAS));
format(
"private:\n"
@ -771,23 +767,19 @@ void RepeatedMessage::GenerateAccessorDeclarations(io::Printer* p) const {
}
format(
"public:\n"
"$DEPRECATED$ const $Submsg$& ${1$$name$$}$(int index) const "
"ABSL_ATTRIBUTE_LIFETIME_BOUND;\n",
"$DEPRECATED$ const $Submsg$& ${1$$name$$}$(int index) const;\n",
field_);
format(
"$DEPRECATED$ $Submsg$* ${1$add_$name$$}$() "
"ABSL_ATTRIBUTE_LIFETIME_BOUND;\n",
std::make_tuple(field_, GeneratedCodeInfo::Annotation::SET));
format("$DEPRECATED$ $Submsg$* ${1$add_$name$$}$();\n",
std::make_tuple(field_, GeneratedCodeInfo::Annotation::SET));
format(
"$DEPRECATED$ const $pb$::RepeatedPtrField< $Submsg$ >&\n"
" ${1$$name$$}$() const ABSL_ATTRIBUTE_LIFETIME_BOUND;\n",
" ${1$$name$$}$() const;\n",
field_);
}
void RepeatedMessage::GenerateInlineAccessorDefinitions(io::Printer* p) const {
p->Emit(
"inline $Submsg$* $Msg$::mutable_$name$(int index) "
"ABSL_ATTRIBUTE_LIFETIME_BOUND {\n"
"inline $Submsg$* $Msg$::mutable_$name$(int index) {\n"
"$annotate_mutable$"
// TODO(dlj): move insertion points
" // @@protoc_insertion_point(field_mutable:$pkg.Msg.field$)\n"
@ -795,38 +787,36 @@ void RepeatedMessage::GenerateInlineAccessorDefinitions(io::Printer* p) const {
" return _internal_mutable_$name$()->Mutable(index);\n"
"}\n"
"inline $pb$::RepeatedPtrField< $Submsg$ >*\n"
"$Msg$::mutable_$name$() ABSL_ATTRIBUTE_LIFETIME_BOUND{\n"
"$Msg$::mutable_$name$() {\n"
"$annotate_mutable_list$"
" // @@protoc_insertion_point(field_mutable_list:$pkg.Msg.field$)\n"
"$StrongRef$;"
" return _internal_mutable_$name$();\n"
"}\n");
p->Emit(
{{"Get", opts_->safe_boundary_check ? "InternalCheckedGet" : "Get"},
{"GetExtraArg",
[&] {
p->Emit(opts_->safe_boundary_check
? ", reinterpret_cast<const $Submsg$&>($kDefault$)"
: "");
}}},
"inline const $Submsg$& $Msg$::$name$(int index) const "
"ABSL_ATTRIBUTE_LIFETIME_BOUND{\n"
"$annotate_get$"
" // @@protoc_insertion_point(field_get:$pkg.Msg.field$)\n"
" $StrongRef$;"
" return _internal_$name$().$Get$(index$GetExtraArg$);\n"
"}\n"
"inline $Submsg$* $Msg$::add_$name$() ABSL_ATTRIBUTE_LIFETIME_BOUND{\n"
" $Submsg$* _add = _internal_mutable_$name$()->Add();\n"
"$annotate_add_mutable$"
" // @@protoc_insertion_point(field_add:$pkg.Msg.field$)\n"
" return _add;\n"
"}\n");
p->Emit({{"Get", opts_->safe_boundary_check ? "InternalCheckedGet" : "Get"},
{"GetExtraArg",
[&] {
p->Emit(opts_->safe_boundary_check
? ", reinterpret_cast<const $Submsg$&>($kDefault$)"
: "");
}}},
"inline const $Submsg$& $Msg$::$name$(int index) const {\n"
"$annotate_get$"
" // @@protoc_insertion_point(field_get:$pkg.Msg.field$)\n"
" $StrongRef$;"
" return _internal_$name$().$Get$(index$GetExtraArg$);\n"
"}\n"
"inline $Submsg$* $Msg$::add_$name$() {\n"
" $Submsg$* _add = _internal_mutable_$name$()->Add();\n"
"$annotate_add_mutable$"
" // @@protoc_insertion_point(field_add:$pkg.Msg.field$)\n"
" return _add;\n"
"}\n");
p->Emit(
"inline const $pb$::RepeatedPtrField< $Submsg$ >&\n"
"$Msg$::$name$() const ABSL_ATTRIBUTE_LIFETIME_BOUND{\n"
"$Msg$::$name$() const {\n"
"$annotate_list$"
" // @@protoc_insertion_point(field_list:$pkg.Msg.field$)\n"
"$StrongRef$;"

@ -414,10 +414,8 @@ void RepeatedPrimitive::GenerateAccessorDeclarations(io::Printer* p) const {
$DEPRECATED$ $Type$ $name$(int index) const;
$DEPRECATED$ void $set_name$(int index, $Type$ value);
$DEPRECATED$ void $add_name$($Type$ value);
$DEPRECATED$ const $pb$::RepeatedField<$Type$>& $name$() const
ABSL_ATTRIBUTE_LIFETIME_BOUND;
$DEPRECATED$ $pb$::RepeatedField<$Type$>* $mutable_name$()
ABSL_ATTRIBUTE_LIFETIME_BOUND;
$DEPRECATED$ const $pb$::RepeatedField<$Type$>& $name$() const;
$DEPRECATED$ $pb$::RepeatedField<$Type$>* $mutable_name$();
private:
const $pb$::RepeatedField<$Type$>& $_internal_name$() const;
@ -445,14 +443,12 @@ void RepeatedPrimitive::GenerateInlineAccessorDefinitions(
$annotate_add$;
// @@protoc_insertion_point(field_add:$pkg.Msg.field$)
}
inline const $pb$::RepeatedField<$Type$>& $Msg$::$name$() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const $pb$::RepeatedField<$Type$>& $Msg$::$name$() const {
$annotate_list$;
// @@protoc_insertion_point(field_list:$pkg.Msg.field$)
return _internal_$name$();
}
inline $pb$::RepeatedField<$Type$>* $Msg$::mutable_$name$()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline $pb$::RepeatedField<$Type$>* $Msg$::mutable_$name$() {
$annotate_mutable_list$;
// @@protoc_insertion_point(field_mutable_list:$pkg.Msg.field$)
return _internal_mutable_$name$();

@ -237,15 +237,14 @@ void SingularString::GenerateAccessorDeclarations(io::Printer* p) const {
)cc");
}}},
R"cc(
$DEPRECATED$ const std::string& $name$() const
ABSL_ATTRIBUTE_LIFETIME_BOUND;
$DEPRECATED$ const std::string& $name$() const;
//~ Using `Arg_ = const std::string&` will make the type of `arg`
//~ default to `const std::string&`, due to reference collapse. This is
//~ necessary because there are a handful of users that rely on this
//~ default.
template <typename Arg_ = const std::string&, typename... Args_>
$DEPRECATED$ void $set_name$(Arg_&& arg, Args_... args);
$DEPRECATED$ std::string* $mutable_name$() ABSL_ATTRIBUTE_LIFETIME_BOUND;
$DEPRECATED$ std::string* $mutable_name$();
$DEPRECATED$ PROTOBUF_NODISCARD std::string* $release_name$();
$DEPRECATED$ void $set_allocated_name$(std::string* ptr);
@ -418,8 +417,7 @@ void SingularString::GenerateInlineAccessorDefinitions(io::Printer* p) const {
{"set_allocated_impl", [&] { SetAllocatedImpl(p); }},
},
R"cc(
inline const std::string& $Msg$::$name$() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const std::string& $Msg$::$name$() const {
$annotate_get$;
// @@protoc_insertion_point(field_get:$pkg.Msg.field$)
$if_IsDefault$;
@ -434,7 +432,7 @@ void SingularString::GenerateInlineAccessorDefinitions(io::Printer* p) const {
$annotate_set$;
// @@protoc_insertion_point(field_set:$pkg.Msg.field$)
}
inline std::string* $Msg$::mutable_$name$() ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline std::string* $Msg$::mutable_$name$() {
$PrepareSplitMessageForWrite$;
std::string* _s = _internal_mutable_$name$();
$annotate_mutable$;
@ -777,25 +775,21 @@ void RepeatedString::GenerateAccessorDeclarations(io::Printer* p) const {
AnnotatedAccessors(field_, {"mutable_"}, AnnotationCollector::kAlias));
p->Emit(R"cc(
$DEPRECATED$ const std::string& $name$(int index) const
ABSL_ATTRIBUTE_LIFETIME_BOUND;
$DEPRECATED$ std::string* $mutable_name$(int index)
ABSL_ATTRIBUTE_LIFETIME_BOUND;
$DEPRECATED$ const std::string& $name$(int index) const;
$DEPRECATED$ std::string* $mutable_name$(int index);
$DEPRECATED$ void $set_name$(int index, const std::string& value);
$DEPRECATED$ void $set_name$(int index, std::string&& value);
$DEPRECATED$ void $set_name$(int index, const char* value);
$DEPRECATED$ void $set_name$(int index, const $byte$* value, std::size_t size);
$DEPRECATED$ void $set_name$(int index, absl::string_view value);
$DEPRECATED$ std::string* $add_name$() ABSL_ATTRIBUTE_LIFETIME_BOUND;
$DEPRECATED$ std::string* $add_name$();
$DEPRECATED$ void $add_name$(const std::string& value);
$DEPRECATED$ void $add_name$(std::string&& value);
$DEPRECATED$ void $add_name$(const char* value);
$DEPRECATED$ void $add_name$(const $byte$* value, std::size_t size);
$DEPRECATED$ void $add_name$(absl::string_view value);
$DEPRECATED$ const $pb$::RepeatedPtrField<std::string>& $name$() const
ABSL_ATTRIBUTE_LIFETIME_BOUND;
$DEPRECATED$ $pb$::RepeatedPtrField<std::string>* $mutable_name$()
ABSL_ATTRIBUTE_LIFETIME_BOUND;
$DEPRECATED$ const $pb$::RepeatedPtrField<std::string>& $name$() const;
$DEPRECATED$ $pb$::RepeatedPtrField<std::string>* $mutable_name$();
private:
const $pb$::RepeatedPtrField<std::string>& _internal_$name$() const;
@ -814,21 +808,18 @@ void RepeatedString::GenerateInlineAccessorDefinitions(io::Printer* p) const {
: "");
}}},
R"cc(
inline std::string* $Msg$::add_$name$()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline std::string* $Msg$::add_$name$() {
std::string* _s = _internal_mutable_$name$()->Add();
$annotate_add_mutable$;
// @@protoc_insertion_point(field_add_mutable:$pkg.Msg.field$)
return _s;
}
inline const std::string& $Msg$::$name$(int index) const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const std::string& $Msg$::$name$(int index) const {
$annotate_get$;
// @@protoc_insertion_point(field_get:$pkg.Msg.field$)
return _internal_$name$().$Get$(index$GetExtraArg$);
}
inline std::string* $Msg$::mutable_$name$(int index)
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline std::string* $Msg$::mutable_$name$(int index) {
$annotate_mutable$;
// @@protoc_insertion_point(field_mutable:$pkg.Msg.field$)
return _internal_mutable_$name$()->Mutable(index);
@ -890,13 +881,12 @@ void RepeatedString::GenerateInlineAccessorDefinitions(io::Printer* p) const {
// @@protoc_insertion_point(field_add_string_piece:$pkg.Msg.field$)
}
inline const ::$proto_ns$::RepeatedPtrField<std::string>&
$Msg$::$name$() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
$Msg$::$name$() const {
$annotate_list$;
// @@protoc_insertion_point(field_list:$pkg.Msg.field$)
return _internal_$name$();
}
inline ::$proto_ns$::RepeatedPtrField<std::string>*
$Msg$::mutable_$name$() ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline ::$proto_ns$::RepeatedPtrField<std::string>* $Msg$::mutable_$name$() {
$annotate_mutable_list$;
// @@protoc_insertion_point(field_mutable_list:$pkg.Msg.field$)
return _internal_mutable_$name$();

@ -1300,13 +1300,11 @@ void MessageGenerator::GenerateClassDefinition(io::Printer* p) {
"\n");
p->Emit(R"cc(
inline const $unknown_fields_type$& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const $unknown_fields_type$& unknown_fields() const {
$annotate_unknown_fields$;
return $unknown_fields$;
}
inline $unknown_fields_type$* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline $unknown_fields_type$* mutable_unknown_fields() {
$annotate_mutable_unknown_fields$;
return $mutable_unknown_fields$;
}

@ -157,12 +157,10 @@ class PROTOC_EXPORT Version final :
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
@ -263,11 +261,10 @@ class PROTOC_EXPORT Version final :
// optional string suffix = 4;
bool has_suffix() const;
void clear_suffix() ;
const std::string& suffix() const
ABSL_ATTRIBUTE_LIFETIME_BOUND;
const std::string& suffix() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_suffix(Arg_&& arg, Args_... args);
std::string* mutable_suffix() ABSL_ATTRIBUTE_LIFETIME_BOUND;
std::string* mutable_suffix();
PROTOBUF_NODISCARD std::string* release_suffix();
void set_allocated_suffix(std::string* ptr);
@ -364,12 +361,10 @@ class PROTOC_EXPORT CodeGeneratorRequest final :
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
@ -474,25 +469,21 @@ class PROTOC_EXPORT CodeGeneratorRequest final :
public:
void clear_file_to_generate() ;
const std::string& file_to_generate(int index) const
ABSL_ATTRIBUTE_LIFETIME_BOUND;
std::string* mutable_file_to_generate(int index)
ABSL_ATTRIBUTE_LIFETIME_BOUND;
const std::string& file_to_generate(int index) const;
std::string* mutable_file_to_generate(int index);
void set_file_to_generate(int index, const std::string& value);
void set_file_to_generate(int index, std::string&& value);
void set_file_to_generate(int index, const char* value);
void set_file_to_generate(int index, const char* value, std::size_t size);
void set_file_to_generate(int index, absl::string_view value);
std::string* add_file_to_generate() ABSL_ATTRIBUTE_LIFETIME_BOUND;
std::string* add_file_to_generate();
void add_file_to_generate(const std::string& value);
void add_file_to_generate(std::string&& value);
void add_file_to_generate(const char* value);
void add_file_to_generate(const char* value, std::size_t size);
void add_file_to_generate(absl::string_view value);
const ::google::protobuf::RepeatedPtrField<std::string>& file_to_generate() const
ABSL_ATTRIBUTE_LIFETIME_BOUND;
::google::protobuf::RepeatedPtrField<std::string>* mutable_file_to_generate()
ABSL_ATTRIBUTE_LIFETIME_BOUND;
const ::google::protobuf::RepeatedPtrField<std::string>& file_to_generate() const;
::google::protobuf::RepeatedPtrField<std::string>* mutable_file_to_generate();
private:
const ::google::protobuf::RepeatedPtrField<std::string>& _internal_file_to_generate() const;
@ -506,25 +497,24 @@ class PROTOC_EXPORT CodeGeneratorRequest final :
public:
void clear_proto_file() ;
::google::protobuf::FileDescriptorProto* mutable_proto_file(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND;
::google::protobuf::FileDescriptorProto* mutable_proto_file(int index);
::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
mutable_proto_file() ABSL_ATTRIBUTE_LIFETIME_BOUND;
mutable_proto_file();
private:
const ::google::protobuf::RepeatedPtrField<::google::protobuf::FileDescriptorProto>& _internal_proto_file() const;
::google::protobuf::RepeatedPtrField<::google::protobuf::FileDescriptorProto>* _internal_mutable_proto_file();
public:
const ::google::protobuf::FileDescriptorProto& proto_file(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND;
::google::protobuf::FileDescriptorProto* add_proto_file() ABSL_ATTRIBUTE_LIFETIME_BOUND;
const ::google::protobuf::FileDescriptorProto& proto_file(int index) const;
::google::protobuf::FileDescriptorProto* add_proto_file();
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
proto_file() const ABSL_ATTRIBUTE_LIFETIME_BOUND;
proto_file() const;
// optional string parameter = 2;
bool has_parameter() const;
void clear_parameter() ;
const std::string& parameter() const
ABSL_ATTRIBUTE_LIFETIME_BOUND;
const std::string& parameter() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_parameter(Arg_&& arg, Args_... args);
std::string* mutable_parameter() ABSL_ATTRIBUTE_LIFETIME_BOUND;
std::string* mutable_parameter();
PROTOBUF_NODISCARD std::string* release_parameter();
void set_allocated_parameter(std::string* ptr);
@ -538,9 +528,9 @@ class PROTOC_EXPORT CodeGeneratorRequest final :
// optional .google.protobuf.compiler.Version compiler_version = 3;
bool has_compiler_version() const;
void clear_compiler_version() ;
const ::google::protobuf::compiler::Version& compiler_version() const ABSL_ATTRIBUTE_LIFETIME_BOUND;
const ::google::protobuf::compiler::Version& compiler_version() const;
PROTOBUF_NODISCARD ::google::protobuf::compiler::Version* release_compiler_version();
::google::protobuf::compiler::Version* mutable_compiler_version() ABSL_ATTRIBUTE_LIFETIME_BOUND;
::google::protobuf::compiler::Version* mutable_compiler_version();
void set_allocated_compiler_version(::google::protobuf::compiler::Version* value);
void unsafe_arena_set_allocated_compiler_version(::google::protobuf::compiler::Version* value);
::google::protobuf::compiler::Version* unsafe_arena_release_compiler_version();
@ -603,12 +593,10 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final :
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
@ -709,11 +697,10 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final :
// optional string name = 1;
bool has_name() const;
void clear_name() ;
const std::string& name() const
ABSL_ATTRIBUTE_LIFETIME_BOUND;
const std::string& name() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_name(Arg_&& arg, Args_... args);
std::string* mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND;
std::string* mutable_name();
PROTOBUF_NODISCARD std::string* release_name();
void set_allocated_name(std::string* ptr);
@ -727,11 +714,10 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final :
// optional string insertion_point = 2;
bool has_insertion_point() const;
void clear_insertion_point() ;
const std::string& insertion_point() const
ABSL_ATTRIBUTE_LIFETIME_BOUND;
const std::string& insertion_point() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_insertion_point(Arg_&& arg, Args_... args);
std::string* mutable_insertion_point() ABSL_ATTRIBUTE_LIFETIME_BOUND;
std::string* mutable_insertion_point();
PROTOBUF_NODISCARD std::string* release_insertion_point();
void set_allocated_insertion_point(std::string* ptr);
@ -745,11 +731,10 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final :
// optional string content = 15;
bool has_content() const;
void clear_content() ;
const std::string& content() const
ABSL_ATTRIBUTE_LIFETIME_BOUND;
const std::string& content() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_content(Arg_&& arg, Args_... args);
std::string* mutable_content() ABSL_ATTRIBUTE_LIFETIME_BOUND;
std::string* mutable_content();
PROTOBUF_NODISCARD std::string* release_content();
void set_allocated_content(std::string* ptr);
@ -763,9 +748,9 @@ class PROTOC_EXPORT CodeGeneratorResponse_File final :
// optional .google.protobuf.GeneratedCodeInfo generated_code_info = 16;
bool has_generated_code_info() const;
void clear_generated_code_info() ;
const ::google::protobuf::GeneratedCodeInfo& generated_code_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND;
const ::google::protobuf::GeneratedCodeInfo& generated_code_info() const;
PROTOBUF_NODISCARD ::google::protobuf::GeneratedCodeInfo* release_generated_code_info();
::google::protobuf::GeneratedCodeInfo* mutable_generated_code_info() ABSL_ATTRIBUTE_LIFETIME_BOUND;
::google::protobuf::GeneratedCodeInfo* mutable_generated_code_info();
void set_allocated_generated_code_info(::google::protobuf::GeneratedCodeInfo* value);
void unsafe_arena_set_allocated_generated_code_info(::google::protobuf::GeneratedCodeInfo* value);
::google::protobuf::GeneratedCodeInfo* unsafe_arena_release_generated_code_info();
@ -828,12 +813,10 @@ class PROTOC_EXPORT CodeGeneratorResponse final :
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
@ -959,25 +942,24 @@ class PROTOC_EXPORT CodeGeneratorResponse final :
public:
void clear_file() ;
::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND;
::google::protobuf::compiler::CodeGeneratorResponse_File* mutable_file(int index);
::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
mutable_file() ABSL_ATTRIBUTE_LIFETIME_BOUND;
mutable_file();
private:
const ::google::protobuf::RepeatedPtrField<::google::protobuf::compiler::CodeGeneratorResponse_File>& _internal_file() const;
::google::protobuf::RepeatedPtrField<::google::protobuf::compiler::CodeGeneratorResponse_File>* _internal_mutable_file();
public:
const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND;
::google::protobuf::compiler::CodeGeneratorResponse_File* add_file() ABSL_ATTRIBUTE_LIFETIME_BOUND;
const ::google::protobuf::compiler::CodeGeneratorResponse_File& file(int index) const;
::google::protobuf::compiler::CodeGeneratorResponse_File* add_file();
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
file() const ABSL_ATTRIBUTE_LIFETIME_BOUND;
file() const;
// optional string error = 1;
bool has_error() const;
void clear_error() ;
const std::string& error() const
ABSL_ATTRIBUTE_LIFETIME_BOUND;
const std::string& error() const;
template <typename Arg_ = const std::string&, typename... Args_>
void set_error(Arg_&& arg, Args_... args);
std::string* mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND;
std::string* mutable_error();
PROTOBUF_NODISCARD std::string* release_error();
void set_allocated_error(std::string* ptr);
@ -1119,8 +1101,7 @@ inline void Version::clear_suffix() {
_impl_.suffix_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline const std::string& Version::suffix() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const std::string& Version::suffix() const {
// @@protoc_insertion_point(field_get:google.protobuf.compiler.Version.suffix)
return _internal_suffix();
}
@ -1131,7 +1112,7 @@ inline PROTOBUF_ALWAYS_INLINE void Version::set_suffix(Arg_&& arg,
_impl_.suffix_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.compiler.Version.suffix)
}
inline std::string* Version::mutable_suffix() ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline std::string* Version::mutable_suffix() {
std::string* _s = _internal_mutable_suffix();
// @@protoc_insertion_point(field_mutable:google.protobuf.compiler.Version.suffix)
return _s;
@ -1188,19 +1169,16 @@ inline int CodeGeneratorRequest::file_to_generate_size() const {
inline void CodeGeneratorRequest::clear_file_to_generate() {
_internal_mutable_file_to_generate()->Clear();
}
inline std::string* CodeGeneratorRequest::add_file_to_generate()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline std::string* CodeGeneratorRequest::add_file_to_generate() {
std::string* _s = _internal_mutable_file_to_generate()->Add();
// @@protoc_insertion_point(field_add_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
return _s;
}
inline const std::string& CodeGeneratorRequest::file_to_generate(int index) const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const std::string& CodeGeneratorRequest::file_to_generate(int index) const {
// @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
return _internal_file_to_generate().Get(index);
}
inline std::string* CodeGeneratorRequest::mutable_file_to_generate(int index)
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline std::string* CodeGeneratorRequest::mutable_file_to_generate(int index) {
// @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
return _internal_mutable_file_to_generate()->Mutable(index);
}
@ -1251,12 +1229,11 @@ inline void CodeGeneratorRequest::add_file_to_generate(absl::string_view value)
// @@protoc_insertion_point(field_add_string_piece:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
}
inline const ::google::protobuf::RepeatedPtrField<std::string>&
CodeGeneratorRequest::file_to_generate() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
CodeGeneratorRequest::file_to_generate() const {
// @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
return _internal_file_to_generate();
}
inline ::google::protobuf::RepeatedPtrField<std::string>*
CodeGeneratorRequest::mutable_file_to_generate() ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline ::google::protobuf::RepeatedPtrField<std::string>* CodeGeneratorRequest::mutable_file_to_generate() {
// @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.file_to_generate)
return _internal_mutable_file_to_generate();
}
@ -1278,8 +1255,7 @@ inline void CodeGeneratorRequest::clear_parameter() {
_impl_.parameter_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline const std::string& CodeGeneratorRequest::parameter() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const std::string& CodeGeneratorRequest::parameter() const {
// @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.parameter)
return _internal_parameter();
}
@ -1290,7 +1266,7 @@ inline PROTOBUF_ALWAYS_INLINE void CodeGeneratorRequest::set_parameter(Arg_&& ar
_impl_.parameter_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorRequest.parameter)
}
inline std::string* CodeGeneratorRequest::mutable_parameter() ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline std::string* CodeGeneratorRequest::mutable_parameter() {
std::string* _s = _internal_mutable_parameter();
// @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.parameter)
return _s;
@ -1340,26 +1316,26 @@ inline int CodeGeneratorRequest::_internal_proto_file_size() const {
inline int CodeGeneratorRequest::proto_file_size() const {
return _internal_proto_file_size();
}
inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::mutable_proto_file(int index) {
// @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
return _internal_mutable_proto_file()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
CodeGeneratorRequest::mutable_proto_file() ABSL_ATTRIBUTE_LIFETIME_BOUND{
CodeGeneratorRequest::mutable_proto_file() {
// @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
return _internal_mutable_proto_file();
}
inline const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND{
inline const ::google::protobuf::FileDescriptorProto& CodeGeneratorRequest::proto_file(int index) const {
// @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
return _internal_proto_file().Get(index);
}
inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() ABSL_ATTRIBUTE_LIFETIME_BOUND{
inline ::google::protobuf::FileDescriptorProto* CodeGeneratorRequest::add_proto_file() {
::google::protobuf::FileDescriptorProto* _add = _internal_mutable_proto_file()->Add();
// @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
return _add;
}
inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
CodeGeneratorRequest::proto_file() const ABSL_ATTRIBUTE_LIFETIME_BOUND{
CodeGeneratorRequest::proto_file() const {
// @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorRequest.proto_file)
return _internal_proto_file();
}
@ -1386,7 +1362,7 @@ inline const ::google::protobuf::compiler::Version& CodeGeneratorRequest::_inter
const ::google::protobuf::compiler::Version* p = _impl_.compiler_version_;
return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::compiler::Version&>(::google::protobuf::compiler::_Version_default_instance_);
}
inline const ::google::protobuf::compiler::Version& CodeGeneratorRequest::compiler_version() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const ::google::protobuf::compiler::Version& CodeGeneratorRequest::compiler_version() const {
// @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
return _internal_compiler_version();
}
@ -1436,7 +1412,7 @@ inline ::google::protobuf::compiler::Version* CodeGeneratorRequest::_internal_mu
}
return _impl_.compiler_version_;
}
inline ::google::protobuf::compiler::Version* CodeGeneratorRequest::mutable_compiler_version() ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline ::google::protobuf::compiler::Version* CodeGeneratorRequest::mutable_compiler_version() {
::google::protobuf::compiler::Version* _msg = _internal_mutable_compiler_version();
// @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorRequest.compiler_version)
return _msg;
@ -1475,8 +1451,7 @@ inline void CodeGeneratorResponse_File::clear_name() {
_impl_.name_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline const std::string& CodeGeneratorResponse_File::name() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const std::string& CodeGeneratorResponse_File::name() const {
// @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.name)
return _internal_name();
}
@ -1487,7 +1462,7 @@ inline PROTOBUF_ALWAYS_INLINE void CodeGeneratorResponse_File::set_name(Arg_&& a
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.name)
}
inline std::string* CodeGeneratorResponse_File::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline std::string* CodeGeneratorResponse_File::mutable_name() {
std::string* _s = _internal_mutable_name();
// @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.name)
return _s;
@ -1539,8 +1514,7 @@ inline void CodeGeneratorResponse_File::clear_insertion_point() {
_impl_.insertion_point_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000002u;
}
inline const std::string& CodeGeneratorResponse_File::insertion_point() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const std::string& CodeGeneratorResponse_File::insertion_point() const {
// @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
return _internal_insertion_point();
}
@ -1551,7 +1525,7 @@ inline PROTOBUF_ALWAYS_INLINE void CodeGeneratorResponse_File::set_insertion_poi
_impl_.insertion_point_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
}
inline std::string* CodeGeneratorResponse_File::mutable_insertion_point() ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline std::string* CodeGeneratorResponse_File::mutable_insertion_point() {
std::string* _s = _internal_mutable_insertion_point();
// @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.insertion_point)
return _s;
@ -1603,8 +1577,7 @@ inline void CodeGeneratorResponse_File::clear_content() {
_impl_.content_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000004u;
}
inline const std::string& CodeGeneratorResponse_File::content() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const std::string& CodeGeneratorResponse_File::content() const {
// @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.content)
return _internal_content();
}
@ -1615,7 +1588,7 @@ inline PROTOBUF_ALWAYS_INLINE void CodeGeneratorResponse_File::set_content(Arg_&
_impl_.content_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.File.content)
}
inline std::string* CodeGeneratorResponse_File::mutable_content() ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline std::string* CodeGeneratorResponse_File::mutable_content() {
std::string* _s = _internal_mutable_content();
// @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.content)
return _s;
@ -1668,7 +1641,7 @@ inline const ::google::protobuf::GeneratedCodeInfo& CodeGeneratorResponse_File::
const ::google::protobuf::GeneratedCodeInfo* p = _impl_.generated_code_info_;
return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::GeneratedCodeInfo&>(::google::protobuf::_GeneratedCodeInfo_default_instance_);
}
inline const ::google::protobuf::GeneratedCodeInfo& CodeGeneratorResponse_File::generated_code_info() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const ::google::protobuf::GeneratedCodeInfo& CodeGeneratorResponse_File::generated_code_info() const {
// @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info)
return _internal_generated_code_info();
}
@ -1718,7 +1691,7 @@ inline ::google::protobuf::GeneratedCodeInfo* CodeGeneratorResponse_File::_inter
}
return _impl_.generated_code_info_;
}
inline ::google::protobuf::GeneratedCodeInfo* CodeGeneratorResponse_File::mutable_generated_code_info() ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline ::google::protobuf::GeneratedCodeInfo* CodeGeneratorResponse_File::mutable_generated_code_info() {
::google::protobuf::GeneratedCodeInfo* _msg = _internal_mutable_generated_code_info();
// @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.File.generated_code_info)
return _msg;
@ -1757,8 +1730,7 @@ inline void CodeGeneratorResponse::clear_error() {
_impl_.error_.ClearToEmpty();
_impl_._has_bits_[0] &= ~0x00000001u;
}
inline const std::string& CodeGeneratorResponse::error() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline const std::string& CodeGeneratorResponse::error() const {
// @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.error)
return _internal_error();
}
@ -1769,7 +1741,7 @@ inline PROTOBUF_ALWAYS_INLINE void CodeGeneratorResponse::set_error(Arg_&& arg,
_impl_.error_.Set(static_cast<Arg_&&>(arg), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:google.protobuf.compiler.CodeGeneratorResponse.error)
}
inline std::string* CodeGeneratorResponse::mutable_error() ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline std::string* CodeGeneratorResponse::mutable_error() {
std::string* _s = _internal_mutable_error();
// @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.error)
return _s;
@ -1847,26 +1819,26 @@ inline int CodeGeneratorResponse::file_size() const {
inline void CodeGeneratorResponse::clear_file() {
_internal_mutable_file()->Clear();
}
inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index) ABSL_ATTRIBUTE_LIFETIME_BOUND {
inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::mutable_file(int index) {
// @@protoc_insertion_point(field_mutable:google.protobuf.compiler.CodeGeneratorResponse.file)
return _internal_mutable_file()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >*
CodeGeneratorResponse::mutable_file() ABSL_ATTRIBUTE_LIFETIME_BOUND{
CodeGeneratorResponse::mutable_file() {
// @@protoc_insertion_point(field_mutable_list:google.protobuf.compiler.CodeGeneratorResponse.file)
return _internal_mutable_file();
}
inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const ABSL_ATTRIBUTE_LIFETIME_BOUND{
inline const ::google::protobuf::compiler::CodeGeneratorResponse_File& CodeGeneratorResponse::file(int index) const {
// @@protoc_insertion_point(field_get:google.protobuf.compiler.CodeGeneratorResponse.file)
return _internal_file().Get(index);
}
inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() ABSL_ATTRIBUTE_LIFETIME_BOUND{
inline ::google::protobuf::compiler::CodeGeneratorResponse_File* CodeGeneratorResponse::add_file() {
::google::protobuf::compiler::CodeGeneratorResponse_File* _add = _internal_mutable_file()->Add();
// @@protoc_insertion_point(field_add:google.protobuf.compiler.CodeGeneratorResponse.file)
return _add;
}
inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::compiler::CodeGeneratorResponse_File >&
CodeGeneratorResponse::file() const ABSL_ATTRIBUTE_LIFETIME_BOUND{
CodeGeneratorResponse::file() const {
// @@protoc_insertion_point(field_list:google.protobuf.compiler.CodeGeneratorResponse.file)
return _internal_file();
}

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save