@@ -136,19 +136,19 @@ public List<Setting<?>> getSettings() {
136136 public List <NamedWriteableRegistry .Entry > getNamedWriteables () {
137137 return Stream .of (
138138 // graph
139- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .GRAPH , GraphFeatureSetUsage ::new ),
139+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .GRAPH , GraphFeatureSetUsage ::new ),
140140 // logstash
141- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .LOGSTASH , LogstashFeatureSetUsage ::new ),
141+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .LOGSTASH , LogstashFeatureSetUsage ::new ),
142142 // ML
143- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .MACHINE_LEARNING , MachineLearningFeatureSetUsage ::new ),
143+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .MACHINE_LEARNING , MachineLearningFeatureSetUsage ::new ),
144144 // inference
145- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .INFERENCE , InferenceFeatureSetUsage ::new ),
145+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .INFERENCE , InferenceFeatureSetUsage ::new ),
146146 // monitoring
147- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .MONITORING , MonitoringFeatureSetUsage ::new ),
147+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .MONITORING , MonitoringFeatureSetUsage ::new ),
148148 // security
149149 new NamedWriteableRegistry .Entry (ClusterState .Custom .class , TokenMetadata .TYPE , TokenMetadata ::new ),
150150 new NamedWriteableRegistry .Entry (NamedDiff .class , TokenMetadata .TYPE , TokenMetadata ::readDiffFrom ),
151- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .SECURITY , SecurityFeatureSetUsage ::new ),
151+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .SECURITY , SecurityFeatureSetUsage ::new ),
152152 // security : configurable cluster privileges
153153 new NamedWriteableRegistry .Entry (
154154 ConfigurableClusterPrivilege .class ,
@@ -180,20 +180,20 @@ public List<NamedWriteableRegistry.Entry> getNamedWriteables() {
180180 RemoteClusterPermissionGroup ::new
181181 ),
182182 // eql
183- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .EQL , EqlFeatureSetUsage ::new ),
183+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .EQL , EqlFeatureSetUsage ::new ),
184184 // esql
185- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .ESQL , EsqlFeatureSetUsage ::new ),
185+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .ESQL , EsqlFeatureSetUsage ::new ),
186186 // sql
187- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .SQL , SqlFeatureSetUsage ::new ),
187+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .SQL , SqlFeatureSetUsage ::new ),
188188 // watcher
189189 new NamedWriteableRegistry .Entry (Metadata .Custom .class , WatcherMetadata .TYPE , WatcherMetadata ::new ),
190190 new NamedWriteableRegistry .Entry (NamedDiff .class , WatcherMetadata .TYPE , WatcherMetadata ::readDiffFrom ),
191- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .WATCHER , WatcherFeatureSetUsage ::new ),
191+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .WATCHER , WatcherFeatureSetUsage ::new ),
192192 // licensing
193193 new NamedWriteableRegistry .Entry (Metadata .Custom .class , LicensesMetadata .TYPE , LicensesMetadata ::new ),
194194 new NamedWriteableRegistry .Entry (NamedDiff .class , LicensesMetadata .TYPE , LicensesMetadata ::readDiffFrom ),
195195 // rollup
196- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .ROLLUP , RollupFeatureSetUsage ::new ),
196+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .ROLLUP , RollupFeatureSetUsage ::new ),
197197 new NamedWriteableRegistry .Entry (PersistentTaskParams .class , RollupJob .NAME , RollupJob ::new ),
198198 new NamedWriteableRegistry .Entry (Task .Status .class , RollupJobStatus .NAME , RollupJobStatus ::new ),
199199 new NamedWriteableRegistry .Entry (PersistentTaskState .class , RollupJobStatus .NAME , RollupJobStatus ::new ),
@@ -207,9 +207,9 @@ public List<NamedWriteableRegistry.Entry> getNamedWriteables() {
207207 in -> AutoFollowMetadata .readDiffFrom (Metadata .Custom .class , AutoFollowMetadata .TYPE , in )
208208 ),
209209 // ILM
210- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .INDEX_LIFECYCLE , IndexLifecycleFeatureSetUsage ::new ),
210+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .INDEX_LIFECYCLE , IndexLifecycleFeatureSetUsage ::new ),
211211 // SLM
212- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .SNAPSHOT_LIFECYCLE , SLMFeatureSetUsage ::new ),
212+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .SNAPSHOT_LIFECYCLE , SLMFeatureSetUsage ::new ),
213213 // ILM - Custom Metadata
214214 new NamedWriteableRegistry .Entry (Metadata .Custom .class , IndexLifecycleMetadata .TYPE , IndexLifecycleMetadata ::new ),
215215 new NamedWriteableRegistry .Entry (
@@ -247,7 +247,7 @@ public List<NamedWriteableRegistry.Entry> getNamedWriteables() {
247247 // Transforms
248248 new NamedWriteableRegistry .Entry (Metadata .Custom .class , TransformMetadata .TYPE , TransformMetadata ::new ),
249249 new NamedWriteableRegistry .Entry (NamedDiff .class , TransformMetadata .TYPE , TransformMetadata .TransformMetadataDiff ::new ),
250- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .TRANSFORM , TransformFeatureSetUsage ::new ),
250+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .TRANSFORM , TransformFeatureSetUsage ::new ),
251251 new NamedWriteableRegistry .Entry (PersistentTaskParams .class , TransformField .TASK_NAME , TransformTaskParams ::new ),
252252 new NamedWriteableRegistry .Entry (Task .Status .class , TransformField .TASK_NAME , TransformState ::new ),
253253 new NamedWriteableRegistry .Entry (PersistentTaskState .class , TransformField .TASK_NAME , TransformState ::new ),
@@ -263,48 +263,44 @@ public List<NamedWriteableRegistry.Entry> getNamedWriteables() {
263263 i -> NullRetentionPolicyConfig .INSTANCE
264264 ),
265265 // Voting Only Node
266- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .VOTING_ONLY , VotingOnlyNodeFeatureSetUsage ::new ),
266+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .VOTING_ONLY , VotingOnlyNodeFeatureSetUsage ::new ),
267267 // Frozen indices
268- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .FROZEN_INDICES , FrozenIndicesFeatureSetUsage ::new ),
268+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .FROZEN_INDICES , FrozenIndicesFeatureSetUsage ::new ),
269269 // Spatial
270- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .SPATIAL , SpatialFeatureSetUsage ::new ),
270+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .SPATIAL , SpatialFeatureSetUsage ::new ),
271271 // Analytics
272- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .ANALYTICS , AnalyticsFeatureSetUsage ::new ),
272+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .ANALYTICS , AnalyticsFeatureSetUsage ::new ),
273273 // Aggregate metric field type
274- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .AGGREGATE_METRIC , AggregateMetricFeatureSetUsage ::new ),
274+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .AGGREGATE_METRIC , AggregateMetricFeatureSetUsage ::new ),
275275 // Enrich
276- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .ENRICH , EnrichFeatureSetUsage ::new ),
276+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .ENRICH , EnrichFeatureSetUsage ::new ),
277277 new NamedWriteableRegistry .Entry (Task .Status .class , ExecuteEnrichPolicyStatus .NAME , ExecuteEnrichPolicyStatus ::new ),
278278 // Searchable snapshots
279279 new NamedWriteableRegistry .Entry (
280- XPackFeatureSet . Usage .class ,
280+ XPackFeatureUsage .class ,
281281 XPackField .SEARCHABLE_SNAPSHOTS ,
282282 SearchableSnapshotFeatureSetUsage ::new
283283 ),
284284 // Data Streams
285- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .DATA_STREAMS , DataStreamFeatureSetUsage ::new ),
285+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .DATA_STREAMS , DataStreamFeatureSetUsage ::new ),
286286 new NamedWriteableRegistry .Entry (
287- XPackFeatureSet . Usage .class ,
287+ XPackFeatureUsage .class ,
288288 XPackField .DATA_STREAM_LIFECYCLE ,
289289 DataStreamLifecycleFeatureSetUsage ::new
290290 ),
291291 // Data Tiers
292- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .DATA_TIERS , DataTiersFeatureSetUsage ::new ),
292+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .DATA_TIERS , DataTiersFeatureSetUsage ::new ),
293293 // Archive
294- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .ARCHIVE , ArchiveFeatureSetUsage ::new ),
294+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .ARCHIVE , ArchiveFeatureSetUsage ::new ),
295295 // TSDB Downsampling
296296 new NamedWriteableRegistry .Entry (LifecycleAction .class , DownsampleAction .NAME , DownsampleAction ::new ),
297297 // Health API usage
298- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .HEALTH_API , HealthApiFeatureSetUsage ::new ),
298+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .HEALTH_API , HealthApiFeatureSetUsage ::new ),
299299 // Remote cluster usage
300- new NamedWriteableRegistry .Entry (XPackFeatureSet . Usage .class , XPackField .REMOTE_CLUSTERS , RemoteClusterFeatureSetUsage ::new ),
300+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .REMOTE_CLUSTERS , RemoteClusterFeatureSetUsage ::new ),
301301 // Enterprise Search
302- new NamedWriteableRegistry .Entry (
303- XPackFeatureSet .Usage .class ,
304- XPackField .ENTERPRISE_SEARCH ,
305- EnterpriseSearchFeatureSetUsage ::new
306- ),
307- new NamedWriteableRegistry .Entry (XPackFeatureSet .Usage .class , XPackField .UNIVERSAL_PROFILING , ProfilingUsage ::new ),
302+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .ENTERPRISE_SEARCH , EnterpriseSearchFeatureSetUsage ::new ),
303+ new NamedWriteableRegistry .Entry (XPackFeatureUsage .class , XPackField .UNIVERSAL_PROFILING , ProfilingUsage ::new ),
308304 new NamedWriteableRegistry .Entry (
309305 PersistentTaskParams .class ,
310306 SecurityMigrationTaskParams .TASK_NAME ,
0 commit comments