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

package models

import (
	"context"

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

// ExamplepbBody examplepb body
//
// swagger:model examplepbBody
type ExamplepbBody struct {

	// name
	Name string `json:"name,omitempty"`
}

// Validate validates this examplepb body
func (m *ExamplepbBody) Validate(formats strfmt.Registry) error {
	return nil
}

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

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

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