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

package models

import (
	"context"

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

// ProtoSub2Status Status message in sub2 package (different structure from sub.Status)
//
// swagger:model protoSub2Status
type ProtoSub2Status struct {

	// error code
	ErrorCode string `json:"errorCode,omitempty"`

	// error message
	ErrorMessage string `json:"errorMessage,omitempty"`

	// severity
	Severity int32 `json:"severity,omitempty"`
}

// Validate validates this proto sub2 status
func (m *ProtoSub2Status) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this proto sub2 status based on context it is used
func (m *ProtoSub2Status) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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