func NewModuleReferencesForProtos(protoModuleReferences ...*modulev1alpha1.ModuleReference) ([]ModuleReference, error) {
	if len(protoModuleReferences) == 0 {
		return nil, nil
	}
	moduleReferences := make([]ModuleReference, len(protoModuleReferences))
	for i, protoModuleReference := range protoModuleReferences {
		moduleReference, err := NewModuleReferenceForProto(protoModuleReference)
		if err != nil {
			return nil, err
		}
		moduleReferences[i] = moduleReference
	}
	return moduleReferences, nil
}
// NewModuleReferencesForProtos maps the Protobuf equivalent into the internal representation.
NewModuleReferencesForProtos maps the Protobuf equivalent into the internal representation.
// NewModuleReferencesForProtos maps the Protobuf equivalent into the internal representation .
func NewModuleReferencesForProtos(protoModuleReferences ...*modulev1alpha1.ModuleReference) ([]ModuleReference, error) {
	if len(protoModuleReferences) == 0 {
		return nil, nil
	}
	moduleReferences := make([]ModuleReference, len(protoModuleReferences))
	for i, protoModuleReference := range protoModuleReferences {
		moduleReference, err := NewModuleReferenceForProto(protoModuleReference)
		if err != nil {
			return nil, err
		}
		moduleReferences[i] = moduleReference
	}
	return moduleReferences, nil
}
func NewModuleReferencesForProtos ( protoModuleReferences ... * modulev1alpha1 . ModuleReference ) ( [ ] ModuleReference , error ) { if len ( protoModuleReferences ) == 0 { return nil , nil } moduleReferences := make ( [ ] ModuleReference , len ( protoModuleReferences ) ) for i , protoModuleReference := range protoModuleReferences { moduleReference , err := NewModuleReferenceForProto ( protoModuleReference ) if err != nil { return nil , err } moduleReferences [ i ] = moduleReference } return moduleReferences , nil }
NewModuleReferencesForProtos maps the Protobuf equivalent into the internal representation.
NewModuleReferencesForProtos maps the Protobuf equivalent into the internal representation .