/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// This file defines meta-annotations targeted at Thrift framework authors
// rather than general Thrift users.

include "thrift/annotation/scope.thrift"
include "thrift/annotation/thrift.thrift"

package "facebook.com/thrift/annotation/deprecated"

namespace java com.facebook.thrift.annotation_deprecated.deprecated
namespace py.asyncio facebook_thrift_asyncio.annotation.meta
namespace go thrift.annotation.meta
namespace py thrift.annotation.meta

// Calls t_struct::set_generated().
//
// Useful for testing.
// TODO(afuller): Move to internal.thrift.
@scope.Struct
@thrift.Experimental
struct SetGenerated {} (
  thrift.uri = "facebook.com/thrift/annotation/SetGenerated",
)

/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// This file defines meta-annotations targeted at Thrift framework authors
// rather than general Thrift users.

include "thrift/annotation/scope.thrift"
include "thrift/annotation/thrift.thrift"

package "facebook.com/thrift/annotation/deprecated"

namespace java com.facebook.thrift.annotation_deprecated.deprecated
namespace py.asyncio facebook_thrift_asyncio.annotation.meta
namespace go thrift.annotation.meta
namespace py thrift.annotation.meta

// Calls t_struct::set_generated().
//
// Useful for testing.
// TODO(afuller): Move to internal.thrift.
@scope.Struct
@thrift.Experimental
struct SetGenerated {} (
  thrift.uri = "facebook.com/thrift/annotation/SetGenerated",
)

// TODO(afuller): Delete.
@scope.Struct
@thrift.Deprecated
struct Transitive {} (thrift.uri = "facebook.com/thrift/annotation/Transitive")

Revert D40922406: Multisect successfully blamed D40922406 for test or build failures

Summary:
This diff is reverting D40922406 (https://github.com/facebook/fbthrift/commit/bc5384ed306a6d75c237d7100f4e2d0e7b5ca654)
D40922406 (https://github.com/facebook/fbthrift/commit/bc5384ed306a6d75c237d7100f4e2d0e7b5ca654) has been identified to be causing the following test or build failures:
Tests affected:
- https://www.internalfb.com/intern/test/844424932345234/

Here's the Multisect link:
https://www.internalfb.com/intern/testinfra/multisect/1416572
Here are the tasks that are relevant to this breakage:
T93198895: 2 tests started failing for oncall thrift in the last 2 weeks
We're generating a revert to back out the changes in this diff, please note the backout may land if someone accepts it.

Reviewed By: helfper

Differential Revision: D41332178

fbshipit-source-id: 136f65d38ac03287bac162f2d27c7a57a9f76206

facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift,facebook/fbthrift