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

package models

import (
	"context"

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

// ExamplepbUnannotatedNestedMessage examplepb unannotated nested message
//
// swagger:model examplepbUnannotatedNestedMessage
type ExamplepbUnannotatedNestedMessage struct {

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

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

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

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

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

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