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

package models

import (
	"context"

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

// ExamplepbGenerateUnboundMethodsSimpleMessage GenerateUnboundMethodsSimpleMessage represents a simple message sent to the unannotated GenerateUnboundMethodsEchoService service.
//
// swagger:model examplepbGenerateUnboundMethodsSimpleMessage
type ExamplepbGenerateUnboundMethodsSimpleMessage struct {

	// duration
	Duration string `json:"duration,omitempty"`

	// Id represents the message identifier.
	ID string `json:"id,omitempty"`

	// num
	Num string `json:"num,omitempty"`
}

// Validate validates this examplepb generate unbound methods simple message
func (m *ExamplepbGenerateUnboundMethodsSimpleMessage) Validate(formats strfmt.Registry) error {
	return nil
}

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

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

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