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

package models

import (
	"context"
	"encoding/json"

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

// ExamplepbSnakeCase0Enum Ignoring lint warnings as this enum type exist to validate proper functionality
// for projects that don't follow these lint rules.
// buf:lint:ignore ENUM_PASCAL_CASE
//
// - value_e: buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE
//   - value_f: buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE
//
// swagger:model examplepbSnake_case_0_enum
type ExamplepbSnakeCase0Enum string

func NewExamplepbSnakeCase0Enum(value ExamplepbSnakeCase0Enum) *ExamplepbSnakeCase0Enum {
	return &value
}

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

const (

	// ExamplepbSnakeCase0EnumValuee captures enum value "value_e"
	ExamplepbSnakeCase0EnumValuee ExamplepbSnakeCase0Enum = "value_e"

	// ExamplepbSnakeCase0EnumValuef captures enum value "value_f"
	ExamplepbSnakeCase0EnumValuef ExamplepbSnakeCase0Enum = "value_f"
)

// for schema
var examplepbSnakeCase0EnumEnum []any

func init() {
	var res []ExamplepbSnakeCase0Enum
	if err := json.Unmarshal([]byte(`["value_e","value_f"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		examplepbSnakeCase0EnumEnum = append(examplepbSnakeCase0EnumEnum, v)
	}
}

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

// Validate validates this examplepb snake case 0 enum
func (m ExamplepbSnakeCase0Enum) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this examplepb snake case 0 enum based on context it is used
func (m ExamplepbSnakeCase0Enum) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
