[7.x][ML][HLRC] DF analytics setVersion and setCreateTime should not be public (#49826) (#49833)

`version` and `create_time` are assigned from the action itself and thus should not
be able to be set from the client.

Backport of #49826
This commit is contained in:
Dimitris Athanasiou 2019-12-04 18:49:08 +02:00 committed by GitHub
parent 87a73b6bdf
commit e3c959b7f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -283,12 +283,12 @@ public class DataFrameAnalyticsConfig implements ToXContentObject {
return this;
}
public Builder setCreateTime(Instant createTime) {
Builder setCreateTime(Instant createTime) {
this.createTime = createTime;
return this;
}
public Builder setVersion(Version version) {
Builder setVersion(Version version) {
this.version = version;
return this;
}