text: // Copyright 2018-2021 Polyaxon, Inc.
  //
  // 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.
  
  /**
   * Polyaxon SDKs and REST API specification.
   * Polyaxon SDKs and REST API specification.
   *
   * The version of the OpenAPI document: 1.10.1
   * Contact: contact@polyaxon.com
   *
   * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
   * https://openapi-generator.tech
   * Do not edit the class manually.
   *
   */
  
  import ApiClient from '../ApiClient';
  
  /**
   * The V1DiffStoppingPolicy model module.
   * @module model/V1DiffStoppingPolicy
   * @version 1.10.1
   */
  class V1DiffStoppingPolicy {
      /**
       * Constructs a new <code>V1DiffStoppingPolicy</code>.
       * Early stopping with diff factor stopping, this policy computes checks runs against the best run and stops those whose performance is worse than the best by the factor defined by the user.
       * @alias module:model/V1DiffStoppingPolicy
       */
      constructor() { 
          
          V1DiffStoppingPolicy.initialize(this);
      }
  
      /**
       * Initializes the fields of this object.
       * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
       * Only for internal use.
       */
      static initialize(obj) { 
      }
  
      /**
       * Constructs a <code>V1DiffStoppingPolicy</code> from a plain JavaScript object, optionally creating a new instance.
       * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
       * @param {Object} data The plain JavaScript object bearing properties of interest.
       * @param {module:model/V1DiffStoppingPolicy} obj Optional instance to populate.
       * @return {module:model/V1DiffStoppingPolicy} The populated <code>V1DiffStoppingPolicy</code> instance.
       */
      static constructFromObject(data, obj) {
          if (data) {
              obj = obj || new V1DiffStoppingPolicy();
  
              if (data.hasOwnProperty('kind')) {
                  obj['kind'] = ApiClient.convertToType(data['kind'], 'String');
              }
              if (data.hasOwnProperty('percent')) {
                  obj['percent'] = ApiClient.convertToType(data['percent'], 'Number');
              }
              if (data.hasOwnProperty('evaluationInterval')) {
                  obj['evaluationInterval'] = ApiClient.convertToType(data['evaluationInterval'], 'Number');
              }
              if (data.hasOwnProperty('minInterval')) {
                  obj['minInterval'] = ApiClient.convertToType(data['minInterval'], 'Number');
              }
              if (data.hasOwnProperty('minSamples')) {
                  obj['minSamples'] = ApiClient.convertToType(data['minSamples'], 'Number');
              }
          }
          return obj;
      }
  
  
  }
  
  /**
   * @member {String} kind
   */
  V1DiffStoppingPolicy.prototype['kind'] = undefined;
  
  /**
   * @member {Number} percent
   */
  V1DiffStoppingPolicy.prototype['percent'] = undefined;
  
  /**
   * Interval/Frequency for applying the policy.
   * @member {Number} evaluationInterval
   */
  V1DiffStoppingPolicy.prototype['evaluationInterval'] = undefined;
  
  /**
   * @member {Number} minInterval
   */
  V1DiffStoppingPolicy.prototype['minInterval'] = undefined;
  
  /**
   * @member {Number} minSamples
   */
  V1DiffStoppingPolicy.prototype['minSamples'] = undefined;
  
  
  
  
  
  
  export default V1DiffStoppingPolicy;
  
  