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

package models

import (
	"context"

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

// ExamplepbNestedBodyOneof examplepb nested body oneof
//
// swagger:model examplepbNestedBodyOneof
type ExamplepbNestedBodyOneof struct {

	// input value
	InputValue string `json:"inputValue,omitempty"`
}

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

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

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

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