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

package models

import (
	"context"

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

// ProtoSubStatus Status message in sub package
//
// swagger:model protoSubStatus
type ProtoSubStatus struct {

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

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

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

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

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