// Code generated by go-swagger; DO NOT EDIT.

package restmodels

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	strfmt "github.com/go-openapi/strfmt"

	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
)

// V1MetaInfo v1 meta info
// swagger:model v1MetaInfo

type V1MetaInfo struct {

	// sequential index
	Rindex int64 `json:"rindex,omitempty"`

	// Time that the metric occured: representing the number of millisecond since midnight January 1, 1970.
	Time int64 `json:"time,omitempty"`

	// Unique id identifying the training job
	TrainingID string `json:"training_id,omitempty"`

	// Unique id identifying the user
	UserID string `json:"user_id,omitempty"`
}

/* polymorph v1MetaInfo rindex false */

/* polymorph v1MetaInfo time false */

/* polymorph v1MetaInfo training_id false */

/* polymorph v1MetaInfo user_id false */

// Validate validates this v1 meta info
func (m *V1MetaInfo) Validate(formats strfmt.Registry) error {
	var res []error

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}

// MarshalBinary interface implementation
func (m *V1MetaInfo) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *V1MetaInfo) UnmarshalBinary(b []byte) error {
	var res V1MetaInfo
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
