Auto-generate files after cl/508418812

pull/11885/head
Protobuf Team Bot 2 years ago
parent 7f6f12240f
commit 6bb44d98b5
  1. 6
      src/google/protobuf/api.pb.cc
  2. 32
      src/google/protobuf/api.pb.h
  3. 18
      src/google/protobuf/struct.pb.h
  4. 12
      src/google/protobuf/type.pb.cc
  5. 64
      src/google/protobuf/type.pb.h

@ -34,6 +34,7 @@ PROTOBUF_CONSTEXPR Api::Api(
, /*decltype(_impl_.source_context_)*/nullptr
, /*decltype(_impl_.syntax_)*/ 0
, /*decltype(_impl_._cached_size_)*/{}} {}
struct ApiDefaultTypeInternal {
PROTOBUF_CONSTEXPR ApiDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
@ -65,6 +66,7 @@ PROTOBUF_CONSTEXPR Method::Method(
, /*decltype(_impl_.response_streaming_)*/ false
, /*decltype(_impl_.syntax_)*/ 0
, /*decltype(_impl_._cached_size_)*/{}} {}
struct MethodDefaultTypeInternal {
PROTOBUF_CONSTEXPR MethodDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
@ -260,6 +262,7 @@ Api::Api(const Api& from)
, decltype(_impl_.source_context_){nullptr}
, decltype(_impl_.syntax_) {}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
@ -296,6 +299,7 @@ inline void Api::SharedCtor(::_pb::Arena* arena) {
, decltype(_impl_.source_context_){nullptr}
, decltype(_impl_.syntax_) { 0 }
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.name_.InitDefault();
@ -687,6 +691,7 @@ Method::Method(const Method& from)
, decltype(_impl_.response_streaming_) {}
, decltype(_impl_.syntax_) {}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
@ -732,6 +737,7 @@ inline void Method::SharedCtor(::_pb::Arena* arena) {
, decltype(_impl_.response_streaming_) { false }
, decltype(_impl_.syntax_) { 0 }
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.name_.InitDefault();

@ -321,9 +321,11 @@ class PROTOBUF_EXPORT Api final :
void clear_syntax() ;
::PROTOBUF_NAMESPACE_ID::Syntax syntax() const;
void set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value);
private:
::PROTOBUF_NAMESPACE_ID::Syntax _internal_syntax() const;
void _internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value);
public:
// @@protoc_insertion_point(class_scope:google.protobuf.Api)
private:
@ -576,9 +578,11 @@ class PROTOBUF_EXPORT Method final :
void clear_syntax() ;
::PROTOBUF_NAMESPACE_ID::Syntax syntax() const;
void set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value);
private:
::PROTOBUF_NAMESPACE_ID::Syntax _internal_syntax() const;
void _internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value);
public:
// @@protoc_insertion_point(class_scope:google.protobuf.Method)
private:
@ -1091,21 +1095,21 @@ Api::mixins() const {
inline void Api::clear_syntax() {
_impl_.syntax_ = 0;
}
inline ::PROTOBUF_NAMESPACE_ID::Syntax Api::_internal_syntax() const {
return static_cast< ::PROTOBUF_NAMESPACE_ID::Syntax >(_impl_.syntax_);
}
inline ::PROTOBUF_NAMESPACE_ID::Syntax Api::syntax() const {
// @@protoc_insertion_point(field_get:google.protobuf.Api.syntax)
return _internal_syntax();
}
inline void Api::_internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value) {
_impl_.syntax_ = value;
}
inline void Api::set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value) {
_internal_set_syntax(value);
// @@protoc_insertion_point(field_set:google.protobuf.Api.syntax)
}
inline ::PROTOBUF_NAMESPACE_ID::Syntax Api::_internal_syntax() const {
return static_cast<::PROTOBUF_NAMESPACE_ID::Syntax>(_impl_.syntax_);
}
inline void Api::_internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value) {
;
_impl_.syntax_ = value;
}
// -------------------------------------------------------------------
@ -1333,21 +1337,21 @@ Method::options() const {
inline void Method::clear_syntax() {
_impl_.syntax_ = 0;
}
inline ::PROTOBUF_NAMESPACE_ID::Syntax Method::_internal_syntax() const {
return static_cast< ::PROTOBUF_NAMESPACE_ID::Syntax >(_impl_.syntax_);
}
inline ::PROTOBUF_NAMESPACE_ID::Syntax Method::syntax() const {
// @@protoc_insertion_point(field_get:google.protobuf.Method.syntax)
return _internal_syntax();
}
inline void Method::_internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value) {
_impl_.syntax_ = value;
}
inline void Method::set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value) {
_internal_set_syntax(value);
// @@protoc_insertion_point(field_set:google.protobuf.Method.syntax)
}
inline ::PROTOBUF_NAMESPACE_ID::Syntax Method::_internal_syntax() const {
return static_cast<::PROTOBUF_NAMESPACE_ID::Syntax>(_impl_.syntax_);
}
inline void Method::_internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value) {
;
_impl_.syntax_ = value;
}
// -------------------------------------------------------------------

@ -443,9 +443,11 @@ class PROTOBUF_EXPORT Value final :
void clear_null_value() ;
::PROTOBUF_NAMESPACE_ID::NullValue null_value() const;
void set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value);
private:
::PROTOBUF_NAMESPACE_ID::NullValue _internal_null_value() const;
void _internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value);
public:
// double number_value = 2;
bool has_number_value() const;
@ -782,16 +784,20 @@ inline void Value::clear_null_value() {
clear_has_kind();
}
}
inline ::PROTOBUF_NAMESPACE_ID::NullValue Value::null_value() const {
// @@protoc_insertion_point(field_get:google.protobuf.Value.null_value)
return _internal_null_value();
}
inline void Value::set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) {
_internal_set_null_value(value);
// @@protoc_insertion_point(field_set:google.protobuf.Value.null_value)
}
inline ::PROTOBUF_NAMESPACE_ID::NullValue Value::_internal_null_value() const {
if (kind_case() == kNullValue) {
return static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(_impl_.kind_.null_value_);
}
return static_cast<::PROTOBUF_NAMESPACE_ID::NullValue>(0);
}
inline ::PROTOBUF_NAMESPACE_ID::NullValue Value::null_value() const {
// @@protoc_insertion_point(field_get:google.protobuf.Value.null_value)
return _internal_null_value();
}
inline void Value::_internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) {
if (kind_case() != kNullValue) {
clear_kind();
@ -799,10 +805,6 @@ inline void Value::_internal_set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue v
}
_impl_.kind_.null_value_ = value;
}
inline void Value::set_null_value(::PROTOBUF_NAMESPACE_ID::NullValue value) {
_internal_set_null_value(value);
// @@protoc_insertion_point(field_set:google.protobuf.Value.null_value)
}
// double number_value = 2;
inline bool Value::has_number_value() const {

@ -30,6 +30,7 @@ PROTOBUF_CONSTEXPR Type::Type(
, /*decltype(_impl_.source_context_)*/nullptr
, /*decltype(_impl_.syntax_)*/ 0
, /*decltype(_impl_._cached_size_)*/{}} {}
struct TypeDefaultTypeInternal {
PROTOBUF_CONSTEXPR TypeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
@ -61,7 +62,9 @@ PROTOBUF_CONSTEXPR Field::Field(
}
, /*decltype(_impl_.kind_)*/ 0
, /*decltype(_impl_.cardinality_)*/ 0
, /*decltype(_impl_.number_)*/ 0
, /*decltype(_impl_.oneof_index_)*/ 0
@ -89,6 +92,7 @@ PROTOBUF_CONSTEXPR Enum::Enum(
, /*decltype(_impl_.source_context_)*/nullptr
, /*decltype(_impl_.syntax_)*/ 0
, /*decltype(_impl_._cached_size_)*/{}} {}
struct EnumDefaultTypeInternal {
PROTOBUF_CONSTEXPR EnumDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
@ -445,6 +449,7 @@ Type::Type(const Type& from)
, decltype(_impl_.source_context_){nullptr}
, decltype(_impl_.syntax_) {}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
@ -472,6 +477,7 @@ inline void Type::SharedCtor(::_pb::Arena* arena) {
, decltype(_impl_.source_context_){nullptr}
, decltype(_impl_.syntax_) { 0 }
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.name_.InitDefault();
@ -823,7 +829,9 @@ Field::Field(const Field& from)
, decltype(_impl_.default_value_) {}
, decltype(_impl_.kind_) {}
, decltype(_impl_.cardinality_) {}
, decltype(_impl_.number_) {}
, decltype(_impl_.oneof_index_) {}
@ -880,7 +888,9 @@ inline void Field::SharedCtor(::_pb::Arena* arena) {
, decltype(_impl_.default_value_) {}
, decltype(_impl_.kind_) { 0 }
, decltype(_impl_.cardinality_) { 0 }
, decltype(_impl_.number_) { 0 }
, decltype(_impl_.oneof_index_) { 0 }
@ -1356,6 +1366,7 @@ Enum::Enum(const Enum& from)
, decltype(_impl_.source_context_){nullptr}
, decltype(_impl_.syntax_) {}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
@ -1382,6 +1393,7 @@ inline void Enum::SharedCtor(::_pb::Arena* arena) {
, decltype(_impl_.source_context_){nullptr}
, decltype(_impl_.syntax_) { 0 }
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.name_.InitDefault();

@ -436,9 +436,11 @@ class PROTOBUF_EXPORT Type final :
void clear_syntax() ;
::PROTOBUF_NAMESPACE_ID::Syntax syntax() const;
void set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value);
private:
::PROTOBUF_NAMESPACE_ID::Syntax _internal_syntax() const;
void _internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value);
public:
// @@protoc_insertion_point(class_scope:google.protobuf.Type)
private:
@ -752,17 +754,21 @@ class PROTOBUF_EXPORT Field final :
void clear_kind() ;
::PROTOBUF_NAMESPACE_ID::Field_Kind kind() const;
void set_kind(::PROTOBUF_NAMESPACE_ID::Field_Kind value);
private:
::PROTOBUF_NAMESPACE_ID::Field_Kind _internal_kind() const;
void _internal_set_kind(::PROTOBUF_NAMESPACE_ID::Field_Kind value);
public:
// .google.protobuf.Field.Cardinality cardinality = 2;
void clear_cardinality() ;
::PROTOBUF_NAMESPACE_ID::Field_Cardinality cardinality() const;
void set_cardinality(::PROTOBUF_NAMESPACE_ID::Field_Cardinality value);
private:
::PROTOBUF_NAMESPACE_ID::Field_Cardinality _internal_cardinality() const;
void _internal_set_cardinality(::PROTOBUF_NAMESPACE_ID::Field_Cardinality value);
public:
// int32 number = 3;
void clear_number() ;
@ -1022,9 +1028,11 @@ class PROTOBUF_EXPORT Enum final :
void clear_syntax() ;
::PROTOBUF_NAMESPACE_ID::Syntax syntax() const;
void set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value);
private:
::PROTOBUF_NAMESPACE_ID::Syntax _internal_syntax() const;
void _internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value);
public:
// @@protoc_insertion_point(class_scope:google.protobuf.Enum)
private:
@ -1718,21 +1726,21 @@ inline void Type::set_allocated_source_context(::PROTOBUF_NAMESPACE_ID::SourceCo
inline void Type::clear_syntax() {
_impl_.syntax_ = 0;
}
inline ::PROTOBUF_NAMESPACE_ID::Syntax Type::_internal_syntax() const {
return static_cast< ::PROTOBUF_NAMESPACE_ID::Syntax >(_impl_.syntax_);
}
inline ::PROTOBUF_NAMESPACE_ID::Syntax Type::syntax() const {
// @@protoc_insertion_point(field_get:google.protobuf.Type.syntax)
return _internal_syntax();
}
inline void Type::_internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value) {
_impl_.syntax_ = value;
}
inline void Type::set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value) {
_internal_set_syntax(value);
// @@protoc_insertion_point(field_set:google.protobuf.Type.syntax)
}
inline ::PROTOBUF_NAMESPACE_ID::Syntax Type::_internal_syntax() const {
return static_cast<::PROTOBUF_NAMESPACE_ID::Syntax>(_impl_.syntax_);
}
inline void Type::_internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value) {
;
_impl_.syntax_ = value;
}
// -------------------------------------------------------------------
@ -1742,41 +1750,41 @@ inline void Type::set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value) {
inline void Field::clear_kind() {
_impl_.kind_ = 0;
}
inline ::PROTOBUF_NAMESPACE_ID::Field_Kind Field::_internal_kind() const {
return static_cast< ::PROTOBUF_NAMESPACE_ID::Field_Kind >(_impl_.kind_);
}
inline ::PROTOBUF_NAMESPACE_ID::Field_Kind Field::kind() const {
// @@protoc_insertion_point(field_get:google.protobuf.Field.kind)
return _internal_kind();
}
inline void Field::_internal_set_kind(::PROTOBUF_NAMESPACE_ID::Field_Kind value) {
_impl_.kind_ = value;
}
inline void Field::set_kind(::PROTOBUF_NAMESPACE_ID::Field_Kind value) {
_internal_set_kind(value);
// @@protoc_insertion_point(field_set:google.protobuf.Field.kind)
}
inline ::PROTOBUF_NAMESPACE_ID::Field_Kind Field::_internal_kind() const {
return static_cast<::PROTOBUF_NAMESPACE_ID::Field_Kind>(_impl_.kind_);
}
inline void Field::_internal_set_kind(::PROTOBUF_NAMESPACE_ID::Field_Kind value) {
;
_impl_.kind_ = value;
}
// .google.protobuf.Field.Cardinality cardinality = 2;
inline void Field::clear_cardinality() {
_impl_.cardinality_ = 0;
}
inline ::PROTOBUF_NAMESPACE_ID::Field_Cardinality Field::_internal_cardinality() const {
return static_cast< ::PROTOBUF_NAMESPACE_ID::Field_Cardinality >(_impl_.cardinality_);
}
inline ::PROTOBUF_NAMESPACE_ID::Field_Cardinality Field::cardinality() const {
// @@protoc_insertion_point(field_get:google.protobuf.Field.cardinality)
return _internal_cardinality();
}
inline void Field::_internal_set_cardinality(::PROTOBUF_NAMESPACE_ID::Field_Cardinality value) {
_impl_.cardinality_ = value;
}
inline void Field::set_cardinality(::PROTOBUF_NAMESPACE_ID::Field_Cardinality value) {
_internal_set_cardinality(value);
// @@protoc_insertion_point(field_set:google.protobuf.Field.cardinality)
}
inline ::PROTOBUF_NAMESPACE_ID::Field_Cardinality Field::_internal_cardinality() const {
return static_cast<::PROTOBUF_NAMESPACE_ID::Field_Cardinality>(_impl_.cardinality_);
}
inline void Field::_internal_set_cardinality(::PROTOBUF_NAMESPACE_ID::Field_Cardinality value) {
;
_impl_.cardinality_ = value;
}
// int32 number = 3;
inline void Field::clear_number() {
@ -2281,21 +2289,21 @@ inline void Enum::set_allocated_source_context(::PROTOBUF_NAMESPACE_ID::SourceCo
inline void Enum::clear_syntax() {
_impl_.syntax_ = 0;
}
inline ::PROTOBUF_NAMESPACE_ID::Syntax Enum::_internal_syntax() const {
return static_cast< ::PROTOBUF_NAMESPACE_ID::Syntax >(_impl_.syntax_);
}
inline ::PROTOBUF_NAMESPACE_ID::Syntax Enum::syntax() const {
// @@protoc_insertion_point(field_get:google.protobuf.Enum.syntax)
return _internal_syntax();
}
inline void Enum::_internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value) {
_impl_.syntax_ = value;
}
inline void Enum::set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value) {
_internal_set_syntax(value);
// @@protoc_insertion_point(field_set:google.protobuf.Enum.syntax)
}
inline ::PROTOBUF_NAMESPACE_ID::Syntax Enum::_internal_syntax() const {
return static_cast<::PROTOBUF_NAMESPACE_ID::Syntax>(_impl_.syntax_);
}
inline void Enum::_internal_set_syntax(::PROTOBUF_NAMESPACE_ID::Syntax value) {
;
_impl_.syntax_ = value;
}
// -------------------------------------------------------------------

Loading…
Cancel
Save