Skip to content

Commit

Permalink
Mark CelValue::CreateMessageWrapper and `CelValue::MessageWrapperOr…
Browse files Browse the repository at this point in the history
…Die` as deprecated

PiperOrigin-RevId: 653355593
  • Loading branch information
jcking authored and copybara-github committed Jul 17, 2024
1 parent 6b9b631 commit 126fc91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eval/public/cel_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ class CelValue {
return static_cast<const google::protobuf::Message*>(wrapped.message_ptr());
}

ABSL_DEPRECATED("Use MessageOrDie")
MessageWrapper MessageWrapperOrDie() const {
return GetValueOrDie<MessageWrapper>(Type::kMessage);
}
Expand Down Expand Up @@ -421,6 +422,7 @@ class CelValue {
// libraries.
// TODO: exposed for testing while wiring adapter APIs. Should
// make private visibility after refactors are done.
ABSL_DEPRECATED("Use CelProtoWrapper::CreateMessage")
static CelValue CreateMessageWrapper(MessageWrapper value) {
CheckNullPointer(value.message_ptr(), Type::kMessage);
CheckNullPointer(value.legacy_type_info(), Type::kMessage);
Expand Down

0 comments on commit 126fc91

Please # to comment.