Skip to content

Commit

Permalink
Mark MessageWrapper as deprecated
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 653639208
  • Loading branch information
jcking authored and copybara-github committed Jul 18, 2024
1 parent 126fc91 commit 15573a7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions eval/public/message_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@

#include <cstdint>

#include "google/protobuf/message.h"
#include "google/protobuf/message_lite.h"
#include "absl/base/attributes.h"
#include "absl/base/macros.h"
#include "absl/numeric/bits.h"
#include "base/internal/message_wrapper.h"
#include "google/protobuf/message.h"
#include "google/protobuf/message_lite.h"

namespace cel::interop_internal {
struct MessageWrapperAccess;
Expand All @@ -36,12 +37,12 @@ class LegacyTypeInfoApis;
// proto APIs and to support working with the proto lite runtime.
//
// Provides operations for checking if down-casting to Message is safe.
class MessageWrapper {
class ABSL_DEPRECATED("Use google::protobuf::Message directly") MessageWrapper {
public:
// Simple builder class.
//
// Wraps a tagged mutable message lite ptr.
class Builder {
class ABSL_DEPRECATED("Use google::protobuf::Message directly") Builder {
public:
explicit Builder(google::protobuf::MessageLite* message)
: message_ptr_(reinterpret_cast<uintptr_t>(message)) {
Expand Down

0 comments on commit 15573a7

Please # to comment.