Auto-generate files after cl/525538377

pull/12508/head
Protobuf Team Bot 2 years ago
parent 6a675ebb44
commit eb8d57aa6d
  1. 16
      src/google/protobuf/field_mask.pb.cc
  2. 49
      src/google/protobuf/field_mask.pb.h
  3. 16
      src/google/protobuf/type.pb.cc
  4. 49
      src/google/protobuf/type.pb.h

@ -146,7 +146,7 @@ FieldMask::~FieldMask() {
inline void FieldMask::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.paths_.~RepeatedPtrField();
_internal_mutable_paths()->~RepeatedPtrField();
}
void FieldMask::SetCachedSize(int size) const {
@ -159,7 +159,7 @@ void FieldMask::Clear() {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.paths_.Clear();
_internal_mutable_paths()->Clear();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@ -239,9 +239,10 @@ failure:
(void) cached_has_bits;
// repeated string paths = 1;
total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.paths_.size());
for (int i = 0, n = _impl_.paths_.size(); i < n; ++i) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(_impl_.paths_.Get(i));
total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_paths().size());
for (int i = 0, n = _internal_paths().size(); i < n; ++i) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
_internal_paths().Get(i));
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
@ -262,7 +263,7 @@ void FieldMask::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT
::uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_impl_.paths_.MergeFrom(from._impl_.paths_);
_this->_internal_mutable_paths()->MergeFrom(from._internal_paths());
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@ -280,7 +281,8 @@ bool FieldMask::IsInitialized() const {
void FieldMask::InternalSwap(FieldMask* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.paths_.InternalSwap(&other->_impl_.paths_);
_internal_mutable_paths()->InternalSwap(
other->_internal_mutable_paths());
}
::PROTOBUF_NAMESPACE_ID::Metadata FieldMask::GetMetadata() const {

@ -220,6 +220,8 @@ class PROTOBUF_EXPORT FieldMask final :
private:
const std::string& _internal_paths(int index) const;
std::string* _internal_add_paths();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& _internal_paths() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* _internal_mutable_paths();
public:
// @@protoc_insertion_point(class_scope:google.protobuf.FieldMask)
@ -261,75 +263,88 @@ inline int FieldMask::paths_size() const {
return _internal_paths_size();
}
inline void FieldMask::clear_paths() {
_impl_.paths_.Clear();
_internal_mutable_paths()->Clear();
}
inline std::string* FieldMask::add_paths() {
std::string* _s = _internal_add_paths();
// @@protoc_insertion_point(field_add_mutable:google.protobuf.FieldMask.paths)
return _s;
}
inline const std::string& FieldMask::_internal_paths(int index) const {
return _impl_.paths_.Get(index);
}
inline const std::string& FieldMask::paths(int index) const {
// @@protoc_insertion_point(field_get:google.protobuf.FieldMask.paths)
return _internal_paths(index);
}
inline std::string* FieldMask::mutable_paths(int index) {
// @@protoc_insertion_point(field_mutable:google.protobuf.FieldMask.paths)
return _impl_.paths_.Mutable(index);
return _internal_mutable_paths()->Mutable(index);
}
inline void FieldMask::set_paths(int index, const std::string& value) {
_impl_.paths_.Mutable(index)->assign(value);
_internal_mutable_paths()->Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
}
inline void FieldMask::set_paths(int index, std::string&& value) {
_impl_.paths_.Mutable(index)->assign(std::move(value));
_internal_mutable_paths()->Mutable(index)->assign(std::move(value));
// @@protoc_insertion_point(field_set:google.protobuf.FieldMask.paths)
}
inline void FieldMask::set_paths(int index, const char* value) {
ABSL_DCHECK(value != nullptr);
_impl_.paths_.Mutable(index)->assign(value);
_internal_mutable_paths()->Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:google.protobuf.FieldMask.paths)
}
inline void FieldMask::set_paths(int index, const char* value,
std::size_t size) {
_impl_.paths_.Mutable(index)->assign(reinterpret_cast<const char*>(value), size);
_internal_mutable_paths()->Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldMask.paths)
}
inline void FieldMask::set_paths(int index, absl::string_view value) {
_impl_.paths_.Mutable(index)->assign(value.data(), value.size());
_internal_mutable_paths()->Mutable(index)->assign(value.data(),
value.size());
// @@protoc_insertion_point(field_set_string_piece:google.protobuf.FieldMask.paths)
}
inline std::string* FieldMask::_internal_add_paths() { return _impl_.paths_.Add(); }
inline void FieldMask::add_paths(const std::string& value) {
_impl_.paths_.Add()->assign(value);
_internal_mutable_paths()->Add()->assign(value);
// @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
}
inline void FieldMask::add_paths(std::string&& value) {
_impl_.paths_.Add(std::move(value));
_internal_mutable_paths()->Add(std::move(value));
// @@protoc_insertion_point(field_add:google.protobuf.FieldMask.paths)
}
inline void FieldMask::add_paths(const char* value) {
ABSL_DCHECK(value != nullptr);
_impl_.paths_.Add()->assign(value);
_internal_mutable_paths()->Add()->assign(value);
// @@protoc_insertion_point(field_add_char:google.protobuf.FieldMask.paths)
}
inline void FieldMask::add_paths(const char* value, std::size_t size) {
_impl_.paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
_internal_mutable_paths()->Add()->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:google.protobuf.FieldMask.paths)
}
inline void FieldMask::add_paths(absl::string_view value) {
_impl_.paths_.Add()->assign(value.data(), value.size());
_internal_mutable_paths()->Add()->assign(value.data(), value.size());
// @@protoc_insertion_point(field_add_string_piece:google.protobuf.FieldMask.paths)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
FieldMask::paths() const {
// @@protoc_insertion_point(field_list:google.protobuf.FieldMask.paths)
return _impl_.paths_;
return _internal_paths();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* FieldMask::mutable_paths() {
// @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldMask.paths)
return _internal_mutable_paths();
}
inline const std::string& FieldMask::_internal_paths(int index) const {
return _internal_paths().Get(index);
}
inline std::string* FieldMask::_internal_add_paths() {
return _internal_mutable_paths()->Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
FieldMask::_internal_paths() const {
return _impl_.paths_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
FieldMask::_internal_mutable_paths() {
return &_impl_.paths_;
}

@ -550,7 +550,7 @@ Type::~Type() {
inline void Type::SharedDtor() {
ABSL_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.fields_.~RepeatedPtrField();
_impl_.oneofs_.~RepeatedPtrField();
_internal_mutable_oneofs()->~RepeatedPtrField();
_impl_.options_.~RepeatedPtrField();
_impl_.name_.Destroy();
_impl_.edition_.Destroy();
@ -568,7 +568,7 @@ void Type::Clear() {
(void) cached_has_bits;
_impl_.fields_.Clear();
_impl_.oneofs_.Clear();
_internal_mutable_oneofs()->Clear();
_impl_.options_.Clear();
_impl_.name_.ClearToEmpty();
_impl_.edition_.ClearToEmpty();
@ -783,9 +783,10 @@ failure:
}
// repeated string oneofs = 3;
total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.oneofs_.size());
for (int i = 0, n = _impl_.oneofs_.size(); i < n; ++i) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(_impl_.oneofs_.Get(i));
total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_oneofs().size());
for (int i = 0, n = _internal_oneofs().size(); i < n; ++i) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
_internal_oneofs().Get(i));
}
// repeated .google.protobuf.Option options = 4;
@ -840,7 +841,7 @@ void Type::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_
(void) cached_has_bits;
_this->_impl_.fields_.MergeFrom(from._impl_.fields_);
_this->_impl_.oneofs_.MergeFrom(from._impl_.oneofs_);
_this->_internal_mutable_oneofs()->MergeFrom(from._internal_oneofs());
_this->_impl_.options_.MergeFrom(from._impl_.options_);
if (!from._internal_name().empty()) {
_this->_internal_set_name(from._internal_name());
@ -876,7 +877,8 @@ void Type::InternalSwap(Type* other) {
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
_impl_.fields_.InternalSwap(&other->_impl_.fields_);
_impl_.oneofs_.InternalSwap(&other->_impl_.oneofs_);
_internal_mutable_oneofs()->InternalSwap(
other->_internal_mutable_oneofs());
_impl_.options_.InternalSwap(&other->_impl_.options_);
::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, lhs_arena,
&other->_impl_.name_, rhs_arena);

@ -383,6 +383,8 @@ class PROTOBUF_EXPORT Type final :
private:
const std::string& _internal_oneofs(int index) const;
std::string* _internal_add_oneofs();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& _internal_oneofs() const;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* _internal_mutable_oneofs();
public:
// repeated .google.protobuf.Option options = 4;
@ -1601,75 +1603,88 @@ inline int Type::oneofs_size() const {
return _internal_oneofs_size();
}
inline void Type::clear_oneofs() {
_impl_.oneofs_.Clear();
_internal_mutable_oneofs()->Clear();
}
inline std::string* Type::add_oneofs() {
std::string* _s = _internal_add_oneofs();
// @@protoc_insertion_point(field_add_mutable:google.protobuf.Type.oneofs)
return _s;
}
inline const std::string& Type::_internal_oneofs(int index) const {
return _impl_.oneofs_.Get(index);
}
inline const std::string& Type::oneofs(int index) const {
// @@protoc_insertion_point(field_get:google.protobuf.Type.oneofs)
return _internal_oneofs(index);
}
inline std::string* Type::mutable_oneofs(int index) {
// @@protoc_insertion_point(field_mutable:google.protobuf.Type.oneofs)
return _impl_.oneofs_.Mutable(index);
return _internal_mutable_oneofs()->Mutable(index);
}
inline void Type::set_oneofs(int index, const std::string& value) {
_impl_.oneofs_.Mutable(index)->assign(value);
_internal_mutable_oneofs()->Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs)
}
inline void Type::set_oneofs(int index, std::string&& value) {
_impl_.oneofs_.Mutable(index)->assign(std::move(value));
_internal_mutable_oneofs()->Mutable(index)->assign(std::move(value));
// @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs)
}
inline void Type::set_oneofs(int index, const char* value) {
ABSL_DCHECK(value != nullptr);
_impl_.oneofs_.Mutable(index)->assign(value);
_internal_mutable_oneofs()->Mutable(index)->assign(value);
// @@protoc_insertion_point(field_set_char:google.protobuf.Type.oneofs)
}
inline void Type::set_oneofs(int index, const char* value,
std::size_t size) {
_impl_.oneofs_.Mutable(index)->assign(reinterpret_cast<const char*>(value), size);
_internal_mutable_oneofs()->Mutable(index)->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.oneofs)
}
inline void Type::set_oneofs(int index, absl::string_view value) {
_impl_.oneofs_.Mutable(index)->assign(value.data(), value.size());
_internal_mutable_oneofs()->Mutable(index)->assign(value.data(),
value.size());
// @@protoc_insertion_point(field_set_string_piece:google.protobuf.Type.oneofs)
}
inline std::string* Type::_internal_add_oneofs() { return _impl_.oneofs_.Add(); }
inline void Type::add_oneofs(const std::string& value) {
_impl_.oneofs_.Add()->assign(value);
_internal_mutable_oneofs()->Add()->assign(value);
// @@protoc_insertion_point(field_add:google.protobuf.Type.oneofs)
}
inline void Type::add_oneofs(std::string&& value) {
_impl_.oneofs_.Add(std::move(value));
_internal_mutable_oneofs()->Add(std::move(value));
// @@protoc_insertion_point(field_add:google.protobuf.Type.oneofs)
}
inline void Type::add_oneofs(const char* value) {
ABSL_DCHECK(value != nullptr);
_impl_.oneofs_.Add()->assign(value);
_internal_mutable_oneofs()->Add()->assign(value);
// @@protoc_insertion_point(field_add_char:google.protobuf.Type.oneofs)
}
inline void Type::add_oneofs(const char* value, std::size_t size) {
_impl_.oneofs_.Add()->assign(reinterpret_cast<const char*>(value), size);
_internal_mutable_oneofs()->Add()->assign(
reinterpret_cast<const char*>(value), size);
// @@protoc_insertion_point(field_add_pointer:google.protobuf.Type.oneofs)
}
inline void Type::add_oneofs(absl::string_view value) {
_impl_.oneofs_.Add()->assign(value.data(), value.size());
_internal_mutable_oneofs()->Add()->assign(value.data(), value.size());
// @@protoc_insertion_point(field_add_string_piece:google.protobuf.Type.oneofs)
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
Type::oneofs() const {
// @@protoc_insertion_point(field_list:google.protobuf.Type.oneofs)
return _impl_.oneofs_;
return _internal_oneofs();
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* Type::mutable_oneofs() {
// @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.oneofs)
return _internal_mutable_oneofs();
}
inline const std::string& Type::_internal_oneofs(int index) const {
return _internal_oneofs().Get(index);
}
inline std::string* Type::_internal_add_oneofs() {
return _internal_mutable_oneofs()->Add();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
Type::_internal_oneofs() const {
return _impl_.oneofs_;
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
Type::_internal_mutable_oneofs() {
return &_impl_.oneofs_;
}

Loading…
Cancel
Save