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

package run_model

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

import (
	"context"
	"encoding/json"

	"github.com/go-openapi/errors"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/validate"
)

// ReportRunMetricsResponseReportRunMetricResultStatus  - UNSPECIFIED: Default value if not present.
//   - OK: Indicates successful reporting.
//   - INVALID_ARGUMENT: Indicates that the payload of the metric is invalid.
//   - DUPLICATE_REPORTING: Indicates that the metric has been reported before.
//   - INTERNAL_ERROR: Indicates that something went wrong in the server.
//
// swagger:model ReportRunMetricsResponseReportRunMetricResultStatus
type ReportRunMetricsResponseReportRunMetricResultStatus string

func NewReportRunMetricsResponseReportRunMetricResultStatus(value ReportRunMetricsResponseReportRunMetricResultStatus) *ReportRunMetricsResponseReportRunMetricResultStatus {
	return &value
}

// Pointer returns a pointer to a freshly-allocated ReportRunMetricsResponseReportRunMetricResultStatus.
func (m ReportRunMetricsResponseReportRunMetricResultStatus) Pointer() *ReportRunMetricsResponseReportRunMetricResultStatus {
	return &m
}

const (

	// ReportRunMetricsResponseReportRunMetricResultStatusUNSPECIFIED captures enum value "UNSPECIFIED"
	ReportRunMetricsResponseReportRunMetricResultStatusUNSPECIFIED ReportRunMetricsResponseReportRunMetricResultStatus = "UNSPECIFIED"

	// ReportRunMetricsResponseReportRunMetricResultStatusOK captures enum value "OK"
	ReportRunMetricsResponseReportRunMetricResultStatusOK ReportRunMetricsResponseReportRunMetricResultStatus = "OK"

	// ReportRunMetricsResponseReportRunMetricResultStatusINVALIDARGUMENT captures enum value "INVALID_ARGUMENT"
	ReportRunMetricsResponseReportRunMetricResultStatusINVALIDARGUMENT ReportRunMetricsResponseReportRunMetricResultStatus = "INVALID_ARGUMENT"

	// ReportRunMetricsResponseReportRunMetricResultStatusDUPLICATEREPORTING captures enum value "DUPLICATE_REPORTING"
	ReportRunMetricsResponseReportRunMetricResultStatusDUPLICATEREPORTING ReportRunMetricsResponseReportRunMetricResultStatus = "DUPLICATE_REPORTING"

	// ReportRunMetricsResponseReportRunMetricResultStatusINTERNALERROR captures enum value "INTERNAL_ERROR"
	ReportRunMetricsResponseReportRunMetricResultStatusINTERNALERROR ReportRunMetricsResponseReportRunMetricResultStatus = "INTERNAL_ERROR"
)

// for schema
var reportRunMetricsResponseReportRunMetricResultStatusEnum []interface{}

func init() {
	var res []ReportRunMetricsResponseReportRunMetricResultStatus
	if err := json.Unmarshal([]byte(`["UNSPECIFIED","OK","INVALID_ARGUMENT","DUPLICATE_REPORTING","INTERNAL_ERROR"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		reportRunMetricsResponseReportRunMetricResultStatusEnum = append(reportRunMetricsResponseReportRunMetricResultStatusEnum, v)
	}
}

func (m ReportRunMetricsResponseReportRunMetricResultStatus) validateReportRunMetricsResponseReportRunMetricResultStatusEnum(path, location string, value ReportRunMetricsResponseReportRunMetricResultStatus) error {
	if err := validate.EnumCase(path, location, value, reportRunMetricsResponseReportRunMetricResultStatusEnum, true); err != nil {
		return err
	}
	return nil
}

// Validate validates this report run metrics response report run metric result status
func (m ReportRunMetricsResponseReportRunMetricResultStatus) Validate(formats strfmt.Registry) error {
	var res []error

	// value enum
	if err := m.validateReportRunMetricsResponseReportRunMetricResultStatusEnum("", "body", m); err != nil {
		return err
	}

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

// ContextValidate validates this report run metrics response report run metric result status based on context it is used
func (m ReportRunMetricsResponseReportRunMetricResultStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
