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

package models

import (
	"context"

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

// ExamplepbDynamicMessage DynamicMessage represents a message which can have its structure
// built dynamically using Struct and Values.
//
// swagger:model examplepbDynamicMessage
type ExamplepbDynamicMessage struct {

	// struct field
	StructField any `json:"structField,omitempty"`

	// value field
	ValueField any `json:"valueField,omitempty"`
}

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

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

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

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