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

package models

import (
	"context"

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

// ExamplepbNestedMessage examplepb nested message
//
// swagger:model examplepbNestedMessage
type ExamplepbNestedMessage struct {

	// n Id
	NID string `json:"nId,omitempty"`

	// val
	Val string `json:"val,omitempty"`
}

// Validate validates this examplepb nested message
func (m *ExamplepbNestedMessage) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this examplepb nested message based on context it is used
func (m *ExamplepbNestedMessage) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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